2017-12-14 12:24:41 +08:00
|
|
|
<?php
|
|
|
|
|
2018-03-01 05:16:36 +08:00
|
|
|
namespace $MODULE_NAMESPACE$\$STUDLY_NAME$\Http\Controllers\Admin;
|
2017-12-14 12:24:41 +08:00
|
|
|
|
2019-08-02 21:02:23 +08:00
|
|
|
use App\Contracts\Controller;
|
2017-12-14 12:24:41 +08:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
2020-09-21 07:10:52 +08:00
|
|
|
* Admin controller
|
2018-03-20 09:50:40 +08:00
|
|
|
*/
|
2018-01-12 11:35:03 +08:00
|
|
|
class AdminController extends Controller
|
2017-12-14 12:24:41 +08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Display a listing of the resource.
|
2020-09-21 07:10:52 +08:00
|
|
|
*
|
|
|
|
* @param Request $request
|
|
|
|
*
|
|
|
|
* @return mixed
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
2020-09-21 07:10:52 +08:00
|
|
|
public function index(Request $request)
|
2017-12-14 12:24:41 +08:00
|
|
|
{
|
|
|
|
return view('$LOWER_NAME$::admin.index');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for creating a new resource.
|
2020-09-21 07:10:52 +08:00
|
|
|
*
|
|
|
|
* @param Request $request
|
|
|
|
*
|
|
|
|
* @return mixed
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
2020-09-21 07:10:52 +08:00
|
|
|
public function create(Request $request)
|
2017-12-14 12:24:41 +08:00
|
|
|
{
|
|
|
|
return view('$LOWER_NAME$::admin.create');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Store a newly created resource in storage.
|
2020-09-21 07:10:52 +08:00
|
|
|
*
|
|
|
|
* @param Request $request
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
|
|
|
public function store(Request $request)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-09-21 07:10:52 +08:00
|
|
|
* Show the form for editing the specified resource.
|
|
|
|
*
|
|
|
|
* @param Request $request
|
|
|
|
*
|
|
|
|
* @return mixed
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
2020-09-21 07:10:52 +08:00
|
|
|
public function edit(Request $request)
|
2017-12-14 12:24:41 +08:00
|
|
|
{
|
2020-09-21 07:10:52 +08:00
|
|
|
return view('$LOWER_NAME$::admin.edit');
|
2017-12-14 12:24:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-09-21 07:10:52 +08:00
|
|
|
* Show the specified resource.
|
|
|
|
*
|
|
|
|
* @param Request $request
|
|
|
|
*
|
|
|
|
* @return mixed
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
2020-09-21 07:10:52 +08:00
|
|
|
public function show(Request $request)
|
2017-12-14 12:24:41 +08:00
|
|
|
{
|
2020-09-21 07:10:52 +08:00
|
|
|
return view('$LOWER_NAME$::admin.show');
|
2017-12-14 12:24:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update the specified resource in storage.
|
2020-09-21 07:10:52 +08:00
|
|
|
*
|
|
|
|
* @param Request $request
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
|
|
|
public function update(Request $request)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove the specified resource from storage.
|
2020-09-21 07:10:52 +08:00
|
|
|
*
|
|
|
|
* @param Request $request
|
2017-12-14 12:24:41 +08:00
|
|
|
*/
|
2020-09-21 07:10:52 +08:00
|
|
|
public function destroy(Request $request)
|
2017-12-14 12:24:41 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|