PHP code example of whande1992 / laravel-acl

1. Go to this page and download the library: Download whande1992/laravel-acl library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

whande1992 / laravel-acl example snippets


      'providers' => [
            Nwidart\Modules\LaravelModulesServiceProvider::class,
      ],

   'aliases' => [
           'Module' => Nwidart\Modules\Facades\Module::class,
      ],
      
      {
       "autoload": {
       "psr-4": {
       "App\\": "app/",
       "Modules\\": "Modules/"
       }
         }      
           }

      'scan' => [
       'enabled' => true,
       'paths' => [
        base_path('vendor/*/*'),
        ],
      ],

      <!-- SweetAlert -->
      <script src="{{asset('plugins/bower_components/sweetalert2/dist/sweetalert2.min.js')}} "></script>
      <link rel="stylesheet" type="text/css" href="{{asset('plugins/bower_components/sweetalert2/dist/sweetalert2.css')}} ">
      <!-- End SweetAlert -->

      @

      @if ($errors->any())
            <script>
                swal(   'Atenção!',
                        ' {!! $errors->first() !!} ',
                        'error'
                    )
            </script>
        @endif

      engine' => 'InnoDB',