Update v1.0.6
This commit is contained in:
49
vendor/unisharp/laravel-filemanager/src/LaravelFilemanagerServiceProvider.php
vendored
Normal file
49
vendor/unisharp/laravel-filemanager/src/LaravelFilemanagerServiceProvider.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php namespace Unisharp\Laravelfilemanager;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
|
||||
|
||||
/**
|
||||
* Class LaravelFilemanagerServiceProvider
|
||||
* @package Unisharp\Laravelfilemanager
|
||||
*/
|
||||
class LaravelFilemanagerServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* Bootstrap the application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
if (Config::get('lfm.use_package_routes'))
|
||||
include __DIR__ . '/routes.php';
|
||||
|
||||
$this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-filemanager');
|
||||
|
||||
$this->loadViewsFrom(__DIR__.'/views', 'laravel-filemanager');
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/config/lfm.php' => base_path('config/lfm.php'),
|
||||
], 'lfm_config');
|
||||
|
||||
$this->publishes([
|
||||
__DIR__.'/../public' => public_path('vendor/laravel-filemanager'),
|
||||
], 'lfm_public');
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app['laravel-filemanager'] = $this->app->share(function ()
|
||||
{
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user