35 lines
767 B
PHP
35 lines
767 B
PHP
<?php
|
|
namespace Klevze\ControlPanel\Plugins\Services;
|
|
|
|
use App;
|
|
use Menu;
|
|
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
|
|
|
|
class ServiceProvider extends LaravelServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
|
|
public function boot()
|
|
{
|
|
$this->loadMigrationsFrom(__DIR__ . '/Migrations');
|
|
$this->loadViewsFrom(__DIR__ . '/Resources/views', 'plugin.services');
|
|
Menu::addItem(trans('admin.CONTENT'), trans('admin.SERVICES'), 'fa fa-th-large', 'admin.plugin.services');
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
include __DIR__ . '/Routes/routes.php';
|
|
|
|
}
|
|
}
|