PHP code example of luthfi / simple-crud-generator
1. Go to this page and download the library: Download luthfi/simple-crud-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
luthfi / simple-crud-generator example snippets
return [
// The master view layout that generated views will extends
'default_layout_view' => 'layouts.app',
// The base test case class path for generated testing classes
'base_test_path' => 'tests/BrowserKitTest.php',
// The base test class full name
'base_test_class' => 'Tests\BrowserKitTest',
];
bash
$ php artisan make:crud-simple Vehicle
Vehicle resource route generated on routes/web.php.
Vehicle model generated.
Vehicle table migration generated.
VehicleController generated.
Vehicle index view file generated.
Vehicle form view file generated.
lang/app.php generated.
vehicle lang files generated.
Vehicle model factory generated.
Vehicle model policy generated.
AuthServiceProvider class has been updated.
BrowserKitTest generated.
ManageVehiclesTest generated.
VehicleTest (model) generated.
VehiclePolicyTest (model policy) generated.
CRUD files generated successfully!