Created
February 27, 2020 23:47
-
-
Save thinkstylestudio/279be5fddedc1703901a11221b97a174 to your computer and use it in GitHub Desktop.
Create and scaffold laravel Model and stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function artmodel() { | |
art make:model Models\\$1\\$2 | |
art make:controller --resource --api --model=Models\\$1\\$2 $1\\$(plur $2)Controller | |
art make:factory --model=Models\\$1\\$2 $(plur $2)Factory | |
art make:seed $(plur $2)Seeder | |
art make:policy --model=Models\\$1\\$2 $1\\$2Policy | |
art make:resource $1\\$2Resource | |
art make:resource --collection $1\\$(plur $2)Collection | |
art make:request $1\\Create$2Request | |
art make:request $1\\Update$2Request | |
} | |
usage | |
artmodel Account User |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment