Файловый менеджер - Редактировать - /home/sibcards/public_html/Modules/LandingPage/Routes/401133/Providers.tar
Назад
.gitkeep 0000644 00000000000 15033107375 0006167 0 ustar 00 error_log 0000644 00000001764 15033107375 0006475 0 ustar 00 [07-Jul-2025 10:02:46 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\ServiceProvider" not found in /home/sibcards/public_html/Modules/LandingPage/Providers/AddMenuProvider.php:7 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Providers/AddMenuProvider.php on line 7 [07-Jul-2025 10:38:39 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Support\Providers\RouteServiceProvider" not found in /home/sibcards/public_html/Modules/LandingPage/Providers/RouteServiceProvider.php:8 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Providers/RouteServiceProvider.php on line 8 [07-Jul-2025 11:15:50 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\ServiceProvider" not found in /home/sibcards/public_html/Modules/LandingPage/Providers/LandingPageServiceProvider.php:8 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Providers/LandingPageServiceProvider.php on line 8 RouteServiceProvider.php 0000644 00000003042 15033107375 0011412 0 ustar 00 <?php namespace Modules\LandingPage\Providers; use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * The module namespace to assume when generating URLs to actions. * * @var string */ protected $moduleNamespace = 'Modules\LandingPage\Http\Controllers'; /** * Called before routes are registered. * * Register any model bindings or pattern based filters. * * @return void */ public function boot() { parent::boot(); } /** * Define the routes for the application. * * @return void */ public function map() { $this->mapApiRoutes(); $this->mapWebRoutes(); } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. * * @return void */ protected function mapWebRoutes() { Route::middleware('web') ->namespace($this->moduleNamespace) ->group(module_path('LandingPage', '/Routes/web.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapApiRoutes() { Route::prefix('api') ->middleware('api') ->namespace($this->moduleNamespace) ->group(module_path('LandingPage', '/Routes/api.php')); } } AddMenuProvider.php 0000644 00000001501 15033107375 0010306 0 ustar 00 <?php namespace Modules\LandingPage\Providers; use Illuminate\Support\ServiceProvider; class AddMenuProvider extends ServiceProvider { public function boot() { $routes = collect(\Route::getRoutes())->map(function ($route) { if ($route->getName() != null) { return $route->getName(); } }); view()->composer($routes->toArray(), function ($view) { $view->getFactory()->startPush('add_menu', view('landingpage::menu.landingpage')); }); } /** * Register the service provider. * * @return void */ public function register() { // } /** * Get the services provided by the provider. * * @return array */ public function provides() { return []; } } LandingPageServiceProvider.php 0000644 00000005616 15033107375 0012476 0 ustar 00 <?php namespace Modules\LandingPage\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Database\Eloquent\Factory; class LandingPageServiceProvider extends ServiceProvider { /** * @var string $moduleName */ protected $moduleName = 'LandingPage'; /** * @var string $moduleNameLower */ protected $moduleNameLower = 'landingpage'; /** * Boot the application events. * * @return void */ public function boot() { $this->registerTranslations(); $this->registerConfig(); $this->registerViews(); $this->loadMigrationsFrom(module_path($this->moduleName, 'Database/Migrations')); } /** * Register the service provider. * * @return void */ public function register() { $this->app->register(RouteServiceProvider::class); } /** * Register config. * * @return void */ protected function registerConfig() { $this->publishes([ module_path($this->moduleName, 'Config/config.php') => config_path($this->moduleNameLower . '.php'), ], 'config'); $this->mergeConfigFrom( module_path($this->moduleName, 'Config/config.php'), $this->moduleNameLower ); } /** * Register views. * * @return void */ public function registerViews() { $viewPath = resource_path('views/modules/' . $this->moduleNameLower); $sourcePath = module_path($this->moduleName, 'Resources/views'); $this->publishes([ $sourcePath => $viewPath ], ['views', $this->moduleNameLower . '-module-views']); $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); } /** * Register translations. * * @return void */ public function registerTranslations() { $langPath = resource_path('lang/modules/' . $this->moduleNameLower); if (is_dir($langPath)) { $this->loadTranslationsFrom($langPath, $this->moduleNameLower); $this->loadJsonTranslationsFrom($langPath, $this->moduleNameLower); } else { $this->loadTranslationsFrom(module_path($this->moduleName, 'Resources/lang'), $this->moduleNameLower); $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'Resources/lang'), $this->moduleNameLower); } } /** * Get the services provided by the provider. * * @return array */ public function provides() { return []; } private function getPublishableViewPaths(): array { $paths = []; foreach (\Config::get('view.paths') as $path) { if (is_dir($path . '/modules/' . $this->moduleNameLower)) { $paths[] = $path . '/modules/' . $this->moduleNameLower; } } return $paths; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка