for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xuandung38\LaravelFilemanager;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
/**
* Class LaravelFilemanagerServiceProvider.
*/
class LaravelFilemanagerServiceProvider extends ServiceProvider
{
* Bootstrap the application services.
*
* @return void
public function boot()
$this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-filemanager');
$this->loadViewsFrom(__DIR__.'/views', 'laravel-filemanager');
$this->publishes([
__DIR__ . '/config/lfm.php' => base_path('config/lfm.php'),
base_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
__DIR__ . '/config/lfm.php' => /** @scrutinizer ignore-call */ base_path('config/lfm.php'),
], 'lfm_config');
__DIR__.'/../public' => public_path('vendor/laravel-filemanager'),
public_path
__DIR__.'/../public' => /** @scrutinizer ignore-call */ public_path('vendor/laravel-filemanager'),
], 'lfm_public');
__DIR__.'/views' => base_path('resources/views/vendor/laravel-filemanager'),
], 'lfm_view');
__DIR__.'/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'),
], 'lfm_handler');
if (config('lfm.use_package_routes')) {
config
if (/** @scrutinizer ignore-call */ config('lfm.use_package_routes')) {
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
\Xuandung38\LaravelFilemanager\Lfm::routes();
});
}
* Register the application services.
public function register()
$this->app->singleton('laravel-filemanager', function () {
return true;