About this package
This package contains artisan make:crud commands to create a simple CRUD feature with test classes on our Laravel 5.5 (and later) application. This package is fairly simple, to boost test-driven development method on our laravel application.
With this package installed on local environment, we can use (e.g.) php artisan make:crud Vehicle command to generate some files :
App\Models\Vehicle.phpeloquent modelxxx_create_vehicles_table.phpmigration fileVehicleController.phpindex.blade.phpandforms.blade.phpview file inresources/views/vehiclesdirectoryresources/lang/vehicle.phplang fileVehicleFactory.phpmodel factory fileVehiclePolicy.phpmodel policy file inapp/PoliciesdirectoryManageVehiclesTest.phpfeature test class intests/FeaturedirectoryVehicleTest.phpunit test class intests/Unit/ModelsdirectoryVehiclePolicyTest.phpunit test class intests/Unit/Policiesdirectory
It will update some file :
- Update
routes/web.phpto addvehiclesresource route - Update
app/providers/AuthServiceProvider.phpto add Vehicle model Policy class in$policiesproperty
It will also create this file if it not exists :
resources/lang/app.phplang file if it not existstests/BrowserKitTest.phpbase Feature TestCase class if it not exists
Main purpose
The main purpose of this package is for faster Test-driven Development, it generates model CRUD scaffolds complete with Testing Classes which will use Laravel Browserkit Testing package and PHPUnit.