Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 669 Bytes

README.md

File metadata and controls

41 lines (22 loc) · 669 Bytes

laravel-crud

a simple powerful to create crud for laravel in 5 mintues

copy commands/crud/ dir to your laravel : app/commands/

open and edit app/start/artisan.php

add these codes to end of the file

Artisan::add(new CrudMock);
Artisan::add(new CrudMake);

registers artisan command to laravel

then you should create your mock in order to build your crud

php artisan crud:mock user

this command creates a mock for user Model

you can find it in app/mocks/MockUser.php

in order to create Multiple mocks you can run this command

php artisan crud:mock user,company,category

mocks must be seprated with ","