This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use require_once to avoid re-declaration of classes in routes.php
- Loading branch information
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,20 +14,18 @@ | |
use Illuminate\Support\ServiceProvider; | ||
use Stevebauman\LogReader\LogReaderServiceProvider; | ||
|
||
/** | ||
* @author Abed Halawi <[email protected]> | ||
*/ | ||
/** | ||
* @author Abed Halawi <[email protected]> | ||
*/ | ||
class LucidServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Perform post-registration booting of services. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
if (! $this->app->routesAreCached()) { | ||
require __DIR__.'/Http/routes.php'; | ||
if (!$this->app->routesAreCached()) { | ||
require_once __DIR__.'/Http/routes.php'; | ||
} | ||
|
||
$this->loadViewsFrom(__DIR__.'/../resources/views', 'lucid'); | ||
|
@@ -39,8 +37,6 @@ public function boot() | |
|
||
/** | ||
* Register bindings in the container. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
|