2017 © Pedro Peláez
 

library laravel-controller-generator

"php artisan make:scaffold" for Laravel 5.5+ and PHP 7.x

image

chrispecoraro/laravel-controller-generator

"php artisan make:scaffold" for Laravel 5.5+ and PHP 7.x

  • Monday, September 25, 2017
  • by chrispecoraro
  • Repository
  • 4 Watchers
  • 9 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 40 % Grown

The README.md

Megamake for Laravel

Laravel's php artisan make: on steroids, (*1)

artisan mega:make Department produces:, (*2)

 /**
     * Display a listing of the Department resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index(): ResourceCollection
    {
        return new DepartmentResourceCollection(Department::all());
    }

    /**
     * Store a newly created Department resource in storage.
     *
     * @param  \Illuminate\Http\Request $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request): Response
    {
        $input = $request->validate([
            // TODO
            // write validator
        ]);
        $department = Department::create($input->toArray());

        return response($department, 201);
    }

The mega:make artisan command creates most of the various pieces of a Laravel 5.5 entity, adding boilerplate code and //TODO's, giving you an extra boost, eliminating extra typing., (*3)

  • A Model
  • A Model Factory
  • A Seeder
  • A Migration
  • A Resource Controller
  • A Single API Resource
  • An API Resource Collection
  • A Test

Authors: * Christopher Pecoraro - @chris__pecoraro * Dylan De Souza - @DPC_22, (*4)

This package was created in loving memory of my father, Dr. George Anthony Pecoraro., (*5)

The Versions

25/09 2017

dev-master

9999999-dev

"php artisan make:scaffold" for Laravel 5.5+ and PHP 7.x

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Christopher Pecoraro

15/01 2017

dev-develop

dev-develop

Laravel generators to generate scaffolding using PHP 7.x

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Christopher Pecoraro

15/01 2017

dev-feature/testing_stub_generator

dev-feature/testing_stub_generator

Laravel generators to generate scaffolding using PHP 7.x

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Christopher Pecoraro

11/01 2017

dev-refactor/initial-command

dev-refactor/initial-command

Laravel generators to generate scaffolding using PHP7

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Christopher Pecoraro