FEATURE: add homepage settings for base of one page pages
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Templates\Base\OnePage\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class OnePageTemplate extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
// register translations
|
||||
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'template');
|
||||
|
||||
// load views
|
||||
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
||||
return $path;
|
||||
}, \Config::get('view.paths')), [__DIR__ . '/../Resources/views']), 'template');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user