Assets
Javascript
CSS
Example
use Voyager\Admin\Contracts\Plugins\GenericPlugin;
use Voyager\Admin\Contracts\Plugins\Features\Provider\{CSS, JS};
class VoyagerDocs implements GenericPlugin, CSS, JS
{
// ...
public function provideCSS(): string
{
return file_get_contents('path/to/your/asset.css');
}
public function provideJS(): string
{
return file_get_contents('path/to/your/asset.js');
}
}Last updated
Was this helpful?