remove unnecessary directories

This commit is contained in:
printempw 2016-12-17 22:56:00 +08:00
parent 8677cd9376
commit 6e0ecf4d96
4 changed files with 8 additions and 32 deletions

View File

@ -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 = [
//
];
}

View File

@ -1,10 +0,0 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
abstract class Request extends FormRequest
{
//
}

View File

@ -5,9 +5,11 @@ namespace App\Providers;
use View;
use Utils;
use Schema;
use App\Services\Database;
use Illuminate\Http\Request;
use Illuminate\Support\ServiceProvider;
use App\Exceptions\PrettyPageException;
use App\Services\Repositories\OptionRepository;
class BootServiceProvider extends ServiceProvider
{
@ -21,8 +23,9 @@ class BootServiceProvider extends ServiceProvider
View::addExtension('tpl', 'blade');
$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") {
$this->checkInstallation();
}
@ -35,7 +38,7 @@ class BootServiceProvider extends ServiceProvider
}
}
protected function checkDbConfig()
protected function checkDbConnection()
{
$config = config('database.connections.mysql');
@ -94,7 +97,7 @@ class BootServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->singleton('database', \App\Services\Database\Database::class);
$this->app->singleton('options', \App\Services\Repositories\OptionRepository::class);
$this->app->singleton('options', OptionRepository::class);
$this->app->singleton('database', Database::class);
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace App\Services\Database;
namespace App\Services;
/**
* Light-weight database helper