Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 6f1291e

Browse files
committed
use require_once to avoid re-declaration of classes in routes.php
1 parent f6b396f commit 6f1291e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/LucidServiceProvider.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,18 @@
1414
use Illuminate\Support\ServiceProvider;
1515
use Stevebauman\LogReader\LogReaderServiceProvider;
1616

17-
/**
18-
* @author Abed Halawi <[email protected]>
19-
*/
17+
/**
18+
* @author Abed Halawi <[email protected]>
19+
*/
2020
class LucidServiceProvider extends ServiceProvider
2121
{
2222
/**
2323
* Perform post-registration booting of services.
24-
*
25-
* @return void
2624
*/
2725
public function boot()
2826
{
29-
if (! $this->app->routesAreCached()) {
30-
require __DIR__.'/Http/routes.php';
27+
if (!$this->app->routesAreCached()) {
28+
require_once __DIR__.'/Http/routes.php';
3129
}
3230

3331
$this->loadViewsFrom(__DIR__.'/../resources/views', 'lucid');
@@ -39,8 +37,6 @@ public function boot()
3937

4038
/**
4139
* Register bindings in the container.
42-
*
43-
* @return void
4440
*/
4541
public function register()
4642
{

0 commit comments

Comments
 (0)