77fe6679ce
* Update module generation #714 * Fix method signatures * Fix paths within stubs, use single provider.stub file * Add separate index controller * Update module generation #714 * Fix method signatures * Fix paths within stubs, use single provider.stub file * Update module generation Disable/lower the cache time as found as a workaround in https://github.com/nWidart/laravel-modules/issues/995 * Update editorconfig for line endings * Formatting * Formatting
88 lines
1.6 KiB
Plaintext
88 lines
1.6 KiB
Plaintext
<?php
|
|
|
|
namespace $MODULE_NAMESPACE$\$STUDLY_NAME$\Http\Controllers\Admin;
|
|
|
|
use App\Contracts\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
/**
|
|
* Admin controller
|
|
*/
|
|
class AdminController extends Controller
|
|
{
|
|
/**
|
|
* Display a listing of the resource.
|
|
*
|
|
* @param Request $request
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function index(Request $request)
|
|
{
|
|
return view('$LOWER_NAME$::admin.index');
|
|
}
|
|
|
|
/**
|
|
* Show the form for creating a new resource.
|
|
*
|
|
* @param Request $request
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function create(Request $request)
|
|
{
|
|
return view('$LOWER_NAME$::admin.create');
|
|
}
|
|
|
|
/**
|
|
* Store a newly created resource in storage.
|
|
*
|
|
* @param Request $request
|
|
*/
|
|
public function store(Request $request)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*
|
|
* @param Request $request
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function edit(Request $request)
|
|
{
|
|
return view('$LOWER_NAME$::admin.edit');
|
|
}
|
|
|
|
/**
|
|
* Show the specified resource.
|
|
*
|
|
* @param Request $request
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function show(Request $request)
|
|
{
|
|
return view('$LOWER_NAME$::admin.show');
|
|
}
|
|
|
|
/**
|
|
* Update the specified resource in storage.
|
|
*
|
|
* @param Request $request
|
|
*/
|
|
public function update(Request $request)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Remove the specified resource from storage.
|
|
*
|
|
* @param Request $request
|
|
*/
|
|
public function destroy(Request $request)
|
|
{
|
|
}
|
|
}
|