2017 © Pedro Peláez
 

library traitcommand

A laravel artisan command to generate trait quickly.

image

rukhsar/traitcommand

A laravel artisan command to generate trait quickly.

  • Saturday, December 10, 2016
  • by Rukhsar
  • Repository
  • 1 Watchers
  • 1 Stars
  • 199 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

Laravel Trait Command

A laravel artisan command to generate trait quickly., (*1)

Install

Via Composer, (*2)

composer require rukhsar/traitcommand

In your config/app.php file, add the following to the providers array:, (*3)

Rukhsar\TraitCommand\TraitCommandServiceProvider::class,

Usage

Once installed, you should see make:trait as one of the artisan commands when you run:, (*4)

php artisan list

To use this command, supply it with two arguments, the first is the name of the trait, and the second is the name of the folder you want it to reside in. If the folder does not exist, it will be created for you. If you leave second argument empty, trait will be created under app/, (*5)

For example:, (*6)

php artisan make:trait ModelTrait Traits

This would create a directory named Traits in your app directory with a php file named ModelTrait.php., (*7)

The Versions

10/12 2016

dev-master

9999999-dev

A laravel artisan command to generate trait quickly.

  Sources   Download

MIT

The Requires

 

by Rukhsar Manzoor

29/11 2016

v1.1

1.1.0.0

A laravel artisan command to generate trait quickly.

  Sources   Download

MIT

The Requires

 

by Rukhsar Manzoor

27/11 2016

v1.0

1.0.0.0

A laravel artisan command to generate trait quickly.

  Sources   Download

MIT

The Requires

 

by Rukhsar Manzoor