This library offers the SMVC architecture pattern by adding a data structure layer called Schema to the MVC pattern.
Allows automatic generation of CRUDS sections without the need to create additional views or controllers.
Go to terminal and run this command
composer require xanpena/laravel-smvc
After installing SMVC, publish its assets using the smvc:install Artisan command.
php artisan smvc:install
php artisan smvc:publish
Below Laravel 6 open config/app
and add this line in providers
section
Xanpena\SMVC\SMVCServiceProvider::class,
Dont forget!. You must to define the autoload to Src folder in your composer.json file.
"autoload": {
"psr-4": {
"App\\": "app/",
"Src\\": "src/"
},
You have four options to create a new Schema. This commands publish the new file in your \Src\Schemas folder.
php artisan make:smvc DummySchema --crud
php artisan make:smvc DummySchema --progressive
php artisan make:smvc DummySchema --report
php artisan make:smvc DummySchema --chart
You can check updates with:
php artisan list
php artisan make:smvc --help
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please using the issue tracker.