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,
- It will publish
HomeControllerin controllers directory
- It will publish views
- It will add following routes which need to get it work.
Auth::routes(); Route::get('/home', 'HomeController@index');
Now, you have to enable menu option in
config/infyom/laravel_generator.php. Make menu option
'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
Now we are all set and you can check basic scaffolding.