sebastienheyd / boilerplate

Laravel AdminLTE 3 Boilerplate package with blade components, users, roles and permissions management
MIT License
219 stars 66 forks source link

NEED HELP #22

Closed agungsugiarto closed 4 years ago

agungsugiarto commented 4 years ago

How to best way, for add some new plugin assets?

sebastienheyd commented 4 years ago

In your application the easiest way is to push to the js or css stack. In your views where you need the assets add :

@push('js')
    <script src="https://cdn.ckeditor.com/4.13.1/standard/ckeditor.js"></script>
    <script>
        CKEDITOR.replace( 'editor1' );
    </script>
@endpush

Or for css (with a local file) :

@push('css')
    <link rel="stylesheet" href="styles.css" type="text/css">
    <style>
        body { background: red }
    </style>
@endpush

You can call local assets by putting them in the public directory.

Is that the answer you've been waiting for?

agungsugiarto commented 4 years ago

Thanks, its help me. Closed.