phpvms/resources/stubs/modules/controller.stub

68 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-12-14 12:24:41 +08:00
<?php
namespace $CLASS_NAMESPACE$;
use App\Interfaces\Controller;
2017-12-14 12:24:41 +08:00
use Illuminate\Http\Request;
/**
* Class $CLASS$
* @package $CLASS_NAMESPACE$
*/
2018-01-12 11:35:03 +08:00
class $CLASS$ extends Controller
2017-12-14 12:24:41 +08:00
{
/**
* Display a listing of the resource.
*/
public function index()
{
return view('$LOWER_NAME$::index');
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
return view('$LOWER_NAME$::create');
}
/**
* Store a newly created resource in storage.
* @param Request $request
*/
public function store(Request $request)
{
}
/**
* Show the specified resource.
*/
public function show()
{
return view('$LOWER_NAME$::show');
}
/**
* Show the form for editing the specified resource.
*/
public function edit()
{
return view('$LOWER_NAME$::edit');
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request)
{
}
/**
* Remove the specified resource from storage.
*/
public function destroy()
{
}
}