Appearance
Generator Commands 
The Generator has various commands to generate files in a group or individually. Sometimes you need to generate/re-generate individual files after making some manual changes to some files and you don't want the generator to override your changes.
Also, it has command to rollback all generated files.
Rollback 
To rollback all generated files, we have the following command,
sh
php artisan infyom:rollback $MODEL_NAME$ $COMMAND_TYPEWhere,
$MODEL_NAME - Its a model name for which you want to delete files
$COMMAND_TYPE - Command type from api, scaffold or scaffold_api
If you have run migration on database, then better you rollback that migration first and then run infyom:rollback command, since it will delete migration file as well. Otherwise laravel can throw error about missing migration files.
To rollback specific views of given modal,
sh
php artisan infyom:rollback $MODEL_NAME $COMMAND_TYPE --views=edit,create,index,showMigration Generator 
sh
php artisan infyom:migration $MODEL_NAMEModel Generator 
sh
php artisan infyom:model $MODEL_NAMERepository Generator 
sh
php artisan infyom:repository $MODEL_NAMEAPI Controller Generator 
sh
php artisan infyom.api:controller $MODEL_NAMEAPI Requests Generator 
sh
php artisan infyom.api:requests $MODEL_NAMETests Generator 
sh
php artisan infyom.api:tests $MODEL_NAMEScaffold Controller Generator 
sh
php artisan infyom.scaffold:controller $MODEL_NAMEScaffold Requests Generator 
sh
php artisan infyom.scaffold:requests $MODEL_NAMEViews Generator 
sh
php artisan infyom.scaffold:views $MODEL_NAMEDefault Users Model CRUD 
If you want to publish default Users model CRUD, you can use this command. You can also skip repository pattern by changing repositoryPattern option to false if you want.
sh
php artisan infyom.publish:userFollowing files will be generated after executing this command:
- App\Http\Controllers\UserController
- app\Http\Requests - CreateUserRequest
- UpdateUserRequest
 
- App\Http\Repository\UserRepository
- resources\views\users - create.blade.php
- edit.blade.php
- index.blade.php
- fields.blade.php
- show_fields.blade.php
- table.blade.php
 
- Routes added to web.php
- menu.blade.php updated with "Users" menu
Email Verification 
By default we are publishing, verify.blade.php file when you setup generator and publish layouts, but if you want to enable email verification in your existing project then you need to run following command :
sh
php artisan infyom.publish:layoutFollowing file will be generated after executing above command:
- resources\auth\verify.blade.php
Now you have to implement User model from MustVerifyEmail, as per below e.g :
sh
use Illuminate\Contracts\Auth\MustVerifyEmail;
class User extends Authenticatable implements MustVerifyEmail
{
    use Notifiable;
    ....
}And now add middleware verified to your routes. for e.g :
sh
Route::get('/home', 'HomeController@index')->middleware('verified');
.... OR ....
Route::middleware(['verified'])->group(function () {
    Route::get('/home', 'HomeController@index');
});
