Run laravel:
- php artisan serve
Admin page: http://localhost:8000/admin
Add CRUD on cms (example):
- php artisan make:Migration create_testing_table
- php artisan make:Model Models/Testing
- connect Models/Testing to testing table protected $table = 'testing';
- php artisan make:Controller Admin/TestingController
- copy Admin/CRUDController to Admin/TestingController
- On Admin/TestingController: match $this->model to Models/Testing match $this->data['title'] with your 'Testing' match $this->data['objectName'] 'testing' -> refer(views/admin/testing) folder
- create routes on routes/web Route::prefix('testing')->group(function(){ Route::get('/truncate', 'Admin\TestingController@truncate'); Route::get('/', 'Admin\TestingController@list'); Route::get('/add', 'Admin\TestingController@add'); Route::post('/addProcess', 'Admin\TestingController@addProcess'); Route::get('/{id}', 'Admin\TestingController@detail'); Route::get('/edit/{id}', 'Admin\TestingController@edit'); Route::post('/editProcess', 'Admin\TestingController@editProcess'); Route::get('/delete/{id}/{isDeleted}', 'Admin\TestingController@deleteProcess'); Route::get('/deletePermanent/{id}', 'Admin\TestingController@deletePermanentProcess'); });
- CRUD ready to use!