FEATURE: prepare handlers for categories

This commit is contained in:
Michal Kváček
2016-08-09 01:13:44 +02:00
parent a698d7a7db
commit cfc3a148e7
7 changed files with 177 additions and 135 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Handlers\Contracts;
use App\Models\User;
interface BaseModuleHandler
{
public static function getModuleId();
/**
* Register admin menu (or multiple ones)
*
* This cannot be in ServiceProvider because Session is started at middleware. And ServiceProvider is called before
* starting any middleware..
*
* @param User $user model of logged user
*/
public static function registerAdminMenu(User $user);
/**
* Install module
*
* @return mixed
*/
public static function install();
}