27 lines
627 B
PHP
27 lines
627 B
PHP
<?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');
|
|
}
|
|
} |