Refactor Site controller
This commit is contained in:
parent
86e5c02c43
commit
d6b6d5a6fb
1 changed files with 14 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ class SiteController extends Controller
|
|||
index as crudIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* SiteController
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
|
@ -23,8 +26,19 @@ class SiteController extends Controller
|
|||
/** @var Site */
|
||||
public static $modelClass = Site::class;
|
||||
|
||||
/**
|
||||
* Crud Layout
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $layout = 'layout.app';
|
||||
|
||||
/**
|
||||
* Site.index crud
|
||||
*
|
||||
* @param CrudIndexRequest $request
|
||||
* @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
|
||||
*/
|
||||
public function index(CrudIndexRequest $request)
|
||||
{
|
||||
/** @var \Illuminate\View\View */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue