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.
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')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.