2017 © Pedro Peláez
 

library artisan-trait-maker

Artisan Command To Create A trait Stub

image

ajayexpert/artisan-trait-maker

Artisan Command To Create A trait Stub

  • Thursday, September 14, 2017
  • by ajayexpert
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

TraitMaker

Latest Version on Packagist ![Software License][ico-license] ![Total Downloads][ico-downloads], (*1)

TraitMaker creates an artisan command that lets you quickly create a trait folder and trait stub. If the folder already exists, you can use the command to place new traits in the exsiting folder., (*2)

Install

Via Composer, (*3)

composer require ajayexpert/artisan-trait-maker

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

AjayExpert\TraitMaker\TraitMakerServiceProvider::class,

Usage

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

php artisan list

To use this command, supply it with two arguments, the first being the name of the trait, and the second being the name of the folder you want it to reside in. If the folder does not exist, it will be created for you., (*6)

For example:, (*7)

php artisan make:trait TestTrait

This would create a directory named Traits in your app directory with a php file named TestTrait.php, which would contain the following stub:, (*8)

<?php
namespace App\Traits

trait TestTrait
{

}

Please note, the package currently only supports trait folders that are in the app folder, for example:, (*9)

app/Traits

Security

If you discover any security related issues, please email ajay.expert@live.com instead of using the issue tracker., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

14/09 2017

dev-master

9999999-dev https://github.com/ajayexpert/artisan-trait-maker

Artisan Command To Create A trait Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 trait-maker ajayexpert artisan-trait-maker laravel trait artisan command for trait

13/09 2017

v1.0.3

1.0.3.0 https://github.com/ajayexpert/artisan-trait-maker

Artisan Command To Create A trait Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 trait-maker ajayexpert artisan-trait-maker laravel trait artisan command for trait

13/09 2017

v1.0.2

1.0.2.0 https://github.com/ajayexpert/artisan-trait-maker

Artisan Command To Create A trait Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 trait-maker ajayexpert artisan-trait-maker laravel trait artisan command for trait

13/09 2017

v1.0.1

1.0.1.0 https://github.com/ajayexpert/artisan-trait-maker

Artisan Command To Create A trait Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 trait-maker ajayexpert artisan-trait-maker laravel trait

13/09 2017

v1.0.0

1.0.0.0 https://github.com/ajayexpert/artisan-trait-maker

Artisan Command To Create A trait Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 trait-maker ajayexpert artisan-trait-maker laravel trait