jeudi 13 août 2020

how to give asset path in laravel package?

I have developed laravel package. which has view example is here

index.blade


    <!DOCTYPE html>
    <html lang="">
    
    <head>
        <meta charset="utf-8">
    
        <!-- CSRF Token -->
        <meta name="csrf-token" content="">
    
        <title> - @yield('title')</title>
    
        <meta name="description" content="Login page example">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    
        <!--end::Layout Skins -->
        <link rel="shortcut icon" href="" /> 
      
    </head>
    
    
    <!--begin::Page Scripts(used by this page) -->
    <script src="" type="text/javascript"></script>
    
    <script src="" type="text/javascript"></script>
    
    
    @yield('scripts')
    
    
    </body>
    
    </html>

You can here are many javascript and css files . I want to make asset folder for package from where ican load these files. like laravel have public directory.

Which Approach i should use?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire