Skip to content

Instantly share code, notes, and snippets.

@thinkstylestudio
Created February 27, 2020 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkstylestudio/279be5fddedc1703901a11221b97a174 to your computer and use it in GitHub Desktop.
Save thinkstylestudio/279be5fddedc1703901a11221b97a174 to your computer and use it in GitHub Desktop.
Create and scaffold laravel Model and stuff
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