1. Go to this page and download the library: Download digitaldream/laracrud 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/ */
php artisan laracrud:request User –-resource=index,show,create,update,destroy
php artisan laracrud:request User –-controller=UserController
php artisan laracrud:request User --controller=UserController --api //this will generated Request for API usages
php artisan laracrud:controller User
//Or Give a controller name.
php artisan laracrud:controller User MyUserController
//Or we can give a sub namespace
php artisan laracrud:controller User User/UserController
//It will create a folder User to controllers
php artisan laracrud:controller Comment --parent=Post // it will create a sub resource CommentController
php artisan laracrud:view User --page=form
php artisan laracrud:view User --page=index --type=panel //There are three type of layout for index page panel,table and tabpan
php artisan laracrud:view User --controller=UserController // Create all the views which is not created yet for this controller
php artisan laracrud:route UserController
php artisan laracrud:route UserController --api // generate api routes for this conroller
php artisan laracrud:route Auth/AuthController
php artisan laracrud:policy User
// will create policy class with basic methods
php artisan laracrud:policy User --controller=UserController
// create method based on Controller public methods
php artisan laracrud:package Hello
php artisan laracrud:test UserController
// or to make api test just pass --api like below
php artisan laracrud:test UserController --api
php artisan laracrud:transformer User
php artisan laracrud:mvc users
php artisan laracrud:mvc users --api // create all the API related resources
php artisan laracrud:migration users
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.