0

I am using Laravel 5.8 with laravel-admin Template for admin. Now in some situation i need custom js and css file only for admin specific controller. How to add these Js and css in laravel-admin.

1
  • In some post i got this Admin::js("your path") But if i use this then What will be the path for custom js? Commented May 29, 2020 at 1:21

1 Answer 1

1

Use,

Admin::js('...your path here');

The path refers to the public directory. So, if you have a js file under public directory, use 'your_file_name.js'. Or if you had your js file containing in a public subdirectory, use Admin::js('sub_directory/your_file.js')

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.