wip
This commit is contained in:
57
stubs/controller.singleton.stub
Normal file
57
stubs/controller.singleton.stub
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace {{ namespace }};
|
||||
|
||||
use {{ rootNamespace }}Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class {{ class }} extends Controller
|
||||
{
|
||||
/**
|
||||
* Show the form for creating the resource.
|
||||
*/
|
||||
public function create(): never
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request): never
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the resource.
|
||||
*/
|
||||
public function show()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the resource.
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the resource in storage.
|
||||
*/
|
||||
public function update(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the resource from storage.
|
||||
*/
|
||||
public function destroy(): never
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user