remove unnecessary directories
This commit is contained in:
parent
8677cd9376
commit
6e0ecf4d96
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Http\Middleware;
|
|
||||||
|
|
||||||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
|
|
||||||
|
|
||||||
class VerifyCsrfToken extends BaseVerifier
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The URIs that should be excluded from CSRF verification.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $except = [
|
|
||||||
//
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Http\Requests;
|
|
||||||
|
|
||||||
use Illuminate\Foundation\Http\FormRequest;
|
|
||||||
|
|
||||||
abstract class Request extends FormRequest
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
@ -5,9 +5,11 @@ namespace App\Providers;
|
||||||
use View;
|
use View;
|
||||||
use Utils;
|
use Utils;
|
||||||
use Schema;
|
use Schema;
|
||||||
|
use App\Services\Database;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use App\Exceptions\PrettyPageException;
|
use App\Exceptions\PrettyPageException;
|
||||||
|
use App\Services\Repositories\OptionRepository;
|
||||||
|
|
||||||
class BootServiceProvider extends ServiceProvider
|
class BootServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
|
@ -21,8 +23,9 @@ class BootServiceProvider extends ServiceProvider
|
||||||
View::addExtension('tpl', 'blade');
|
View::addExtension('tpl', 'blade');
|
||||||
|
|
||||||
$this->checkFileExists();
|
$this->checkFileExists();
|
||||||
$this->checkDbConfig();
|
$this->checkDbConnection();
|
||||||
|
|
||||||
|
// skip the installation check when setup or under CLI
|
||||||
if (!$request->is('setup') && !$request->is('setup/*') && PHP_SAPI != "cli") {
|
if (!$request->is('setup') && !$request->is('setup/*') && PHP_SAPI != "cli") {
|
||||||
$this->checkInstallation();
|
$this->checkInstallation();
|
||||||
}
|
}
|
||||||
|
|
@ -35,7 +38,7 @@ class BootServiceProvider extends ServiceProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkDbConfig()
|
protected function checkDbConnection()
|
||||||
{
|
{
|
||||||
$config = config('database.connections.mysql');
|
$config = config('database.connections.mysql');
|
||||||
|
|
||||||
|
|
@ -94,7 +97,7 @@ class BootServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
$this->app->singleton('database', \App\Services\Database\Database::class);
|
$this->app->singleton('options', OptionRepository::class);
|
||||||
$this->app->singleton('options', \App\Services\Repositories\OptionRepository::class);
|
$this->app->singleton('database', Database::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Services\Database;
|
namespace App\Services;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Light-weight database helper
|
* Light-weight database helper
|
||||||
Loading…
Reference in New Issue
Block a user