Laravel-admin: How to add an external javascript file in Laravel-Admin

Created on 25 Oct 2019  ·  1Comment  ·  Source: z-song/laravel-admin

  • Laravel Version: 5.8
  • PHP Version: 7.2.19
  • Laravel-admin: 1.7

Description:

How to add an external javascript file in Laravel-Admin

I am stuck with a problem since yesterday with the use of Laravel Admin (https://laravel-admin.org/)

I would like to add a javascript script to be able to select all the elements of a multiSelect field.

  1. I can not import the javascript file
  2. how can I proceed (by javascript code) to select all the options of a field multiSelect

Most helpful comment

In app/Admin/boostrap.php:

Admin::js('path/to/your/javascript/file');

>All comments

In app/Admin/boostrap.php:

Admin::js('path/to/your/javascript/file');
Was this page helpful?
0 / 5 - 0 ratings

Related issues

abufalbo picture abufalbo  ·  3Comments

greentornado picture greentornado  ·  3Comments

chenyongmin picture chenyongmin  ·  3Comments

qcol picture qcol  ·  3Comments

wangwenfan picture wangwenfan  ·  3Comments