Publish Layout

  1. Run Publish Layout Command
  2. Check Published Stuff
  3. Menu Configuration

Run Publish Layout Command

Generator also provides a quick way to publish layout and auth scaffold using the following command.


php artisan infyom.publish:layout 

Check Published Stuff

This command generates following files,

  1. It will publish HomeController in controllers directory
  2. It will publish views
    • resources
      • views
        • home.blade.php
        • layouts
          • app.blade.php
          • menu.blade.php
          • sidebar.blade.php
        • auth
          • login.blade.php
          • register.blade.php
          • passwords
            • email.blade.php
            • reset.blade.php
  3. It will add following routes which need to get it work.
    
    Auth::routes();
    
    Route::get('/home', '[email protected]'); 

Now, you have to enable menu option in config/infyom/laravel_generator.php. Make menu option true.


'add_on' => [ 'menu' => [ 'enabled' => true ] ] 

add_on.menu.menu_file is where menu for particular module will be added. If you want to customize it then you can customize it. It will take a respective path from views folder you configured in laravel_generator.php.

Now we are all set and you can check basic scaffolding.