X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/knuckleswtf/scribe/src
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
knuckleswtf
/
scribe
/
src
/
📁
..
📁
Commands
📁
Exceptions
📁
Extracting
📁
Http
📁
Matching
📄
ScribeServiceProvider.php
(1.6 KB)
📁
Tools
📁
Writing
Editing: ScribeServiceProvider.php
<?php namespace Knuckles\Scribe; use Illuminate\Support\ServiceProvider; use Knuckles\Scribe\Commands\GenerateDocumentation; use Knuckles\Scribe\Commands\MakeStrategy; use Knuckles\Scribe\Matching\RouteMatcher; use Knuckles\Scribe\Matching\RouteMatcherInterface; class ScribeServiceProvider extends ServiceProvider { /** * Bootstrap the application events. * * @return void */ public function boot() { $this->loadViewsFrom(__DIR__ . '/../resources/views/', 'scribe'); $this->publishes([ __DIR__ . '/../resources/views' => $this->app->basePath('resources/views/vendor/scribe'), ], 'scribe-views'); $this->publishes([ __DIR__ . '/../config/scribe.php' => $this->app->configPath('scribe.php'), ], 'scribe-config'); $this->mergeConfigFrom(__DIR__ . '/../config/scribe.php', 'scribe'); $this->bootRoutes(); if ($this->app->runningInConsole()) { $this->commands([ GenerateDocumentation::class, MakeStrategy::class, ]); } // Bind the route matcher implementation $this->app->bind(RouteMatcherInterface::class, config('scribe.routeMatcher', RouteMatcher::class)); } /** * Initializing routes in the application. */ protected function bootRoutes() { if ( config('scribe.type', 'static') === 'laravel' && config('scribe.laravel.add_routes', false) ) { $this->loadRoutesFrom( __DIR__ . '/../routes/laravel.php' ); } } }
Upload File
Create Folder