https://github.com/norgul/advart
Laravel 5 - Automatic name resolution for Artisan make commands
https://github.com/norgul/advart
Last synced: about 1 year ago
JSON representation
Laravel 5 - Automatic name resolution for Artisan make commands
- Host: GitHub
- URL: https://github.com/norgul/advart
- Owner: Norgul
- License: mit
- Created: 2017-11-09T16:56:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T18:29:45.000Z (over 8 years ago)
- Last Synced: 2025-01-10T17:31:02.881Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advart
## Laravel 5 - Automatic name resolution for Artisan make commands
### Introduction
I have made this command as a helper command for Laravels Artisan `make` command. The idea behind it was that if you follow laravel
naming convention that you don't need to specify what exactly are you making. I was aiming for additional simplicity like Laravel creators
always improve their code, so I wanted to bring in my part on the table.
So for example if you type `artisan make MyNewController`, the app will automatically assume that you're making a controller, thus you
are able to omit `:controller` from `make` command.
App is in beginning stages of development.
### Installation
### Usage
You can call any (///NOT YET///) command by typing `artisan make {name} {--flag}` where `flag is optional` as in normal artisan commands.
### Example 1
`artisan make MyNewController` -> makes a new blank controller
`artisan make MyNewController --flag=r` -> makes a controller with `-r` || `--resource` option
This also means that you can pass in `--flag=resource` and it will work as well.
To simplify it a bit more, you can use a shorthand name for flag, so you can pass in `-f=r` and it will do the same thing.