Getting Started
Requirements¶
All you need is Composer, PHP ^8.1, and Laravel ^9.x.
Installation¶
composer require evdigiina/generator --dev
For this package, there are two variations: Simple Version and Full Version
Simple Version¶
Only the generator, includes: Yajra Datatables, Intervention Image, and Bootstrap 5.
Publish assets
php artisan generator:install simple
Register the provider in config/app.php
/*
* Package Service Providers...
*/
App\Providers\ViewComposerServiceProvider::class,
Then go to /simple-generators/create/
Full Version¶
The generator + starter app, includes: Yajra Datatables, Intervention Image, Laravel Fortify, Spatie Permission, and Mazer Template.
Installing this package after a brand-new Laravel installation is necessary if you want to use the full version of it. because several files will be overwritten.
Install Laravel Fortify & Spatie Permission
composer require laravel/fortify spatie/laravel-permission
Publish assets
php artisan generator:install full
Warning! Be careful with this command, it will overwrite several files, don't run it multiple times.
Register the provider in config/app.php
/*
* Package Service Providers...
*/
App\Providers\FortifyServiceProvider::class,
Spatie\Permission\PermissionServiceProvider::class,
App\Providers\ViewComposerServiceProvider::class,
Run migration and seeder
php artisan migrate --seed
Then go to /generators/create
Account
- Email: admin@example.com
- Password: password