Package Data | |
---|---|
Maintainer Username: | chrispecoraro |
Maintainer Contact: | chrispecoraro@gmail.com (Christopher Pecoraro) |
Package Create Date: | 2017-01-09 |
Package Last Update: | 2017-09-24 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-10 15:01:18 |
Package Statistics | |
---|---|
Total Downloads: | 26 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 10 |
Total Watchers: | 5 |
Total Forks: | 0 |
Total Open Issues: | 1 |
Laravel's php artisan make:
on steroids
artisan mega:make Department
produces:
/**
* 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.
Authors:
This package was created in loving memory of my father, Dr. George Anthony Pecoraro.