mateusjatenee / laravel-artisan-extended by mateusjatenee

PHP project.
7
2
3
Package Data
Maintainer Username: mateusjatenee
Maintainer Contact: mateus.jatene@gmail.com (Mateus Guimarães)
Package Create Date: 2016-09-15
Package Last Update: 2016-09-16
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:10:50
Package Statistics
Total Downloads: 7
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 0
Total Open Issues: 1

LaravelArtisanExtended

Life is too short to only use default Artisan commands. Give some new ones a try!

Installation via Composer

$ composer require mateusjatenee/laravel-artisan-extended

Use

First of all, add Mateusjatenee\LaravelArtisanExtended\ArtisanExtendedServiceProvider::class to your array of service providers in config/app.php.

// Laravel 5: config/app.php
'providers' => [
    ...
    Mateusjatenee\LaravelArtisanExtended\ArtisanExtendedServiceProvider::class,

];

make:transformer

This command is particularly useful for people who build APIs. Instead of having to write a Transformer everytime, just run make:transformer {name of the transformer} {Model}

For instance, make:transformer Book App\Book will give you the following code:


<?php

namespace App\Transformers;

use League\Fractal\TransformerAbstract;

class BookTransformer extends TransformerAbstract
{
    public function transform(App\Book $book)
    {
        return [

        ];
    }
}

in the app/Transformers/BookTransformer.php file.

License

This library is licensed under the MIT license. Please see LICENSE for more details.

Changelog

Please see CHANGELOG for more details.

Contributing

Please see CONTRIBUTING for more details.