2017 © Pedro Peláez
 

library advart

Automatic name resolution for Artisan make commands

image

norgul/advart

Automatic name resolution for Artisan make commands

  • Thursday, November 9, 2017
  • by Norgul
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

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., (*2)

App is in beginning stages of development., (*3)

Installation

Usage

You can call any (///NOT YET///) command by typing artisan make {name} {--flag} where flag is optional as in normal artisan commands., (*4)

Example 1

artisan make MyNewController -> makes a new blank controller, (*5)

artisan make MyNewController --flag=r -> makes a controller with -r || --resource option, (*6)

This also means that you can pass in --flag=resource and it will work as well., (*7)

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., (*8)

The Versions

09/11 2017

dev-master

9999999-dev

Automatic name resolution for Artisan make commands

  Sources   Download

MIT

The Requires

 

by Marko Dupor

laravel framework command artisan name resolution