FEATURE: add blade template registration into templates
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
namespace Templates\Jednostrankovka;
|
||||
|
||||
use App\Models\Module;
|
||||
use App\Models\User;
|
||||
use Templates\Base\OnePage\Handlers\OnePage;
|
||||
|
||||
class Handler extends OnePage
|
||||
{
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
// parent::registerAdminMenu($user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Install module
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function install()
|
||||
{
|
||||
// parent::install();
|
||||
}
|
||||
|
||||
public static function uninstall(Module $template)
|
||||
{
|
||||
// parent::uninstall($template);
|
||||
}
|
||||
|
||||
public static function getPublicTemplatePaths()
|
||||
{
|
||||
return [
|
||||
[
|
||||
'module' => 'Article',
|
||||
'templateName' => 'article::templates.name'
|
||||
],
|
||||
[
|
||||
'module' => 'StaticPages',
|
||||
'templateName' => 'staticpages::templates.name'
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user