mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
32 lines
640 B
PHP
32 lines
640 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
\View::addExtension('tpl', 'blade');
|
|
|
|
require_once BASE_DIR."/app/helpers.php";
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->singleton('database', \App\Services\Database\Database::class);
|
|
$this->app->singleton('option', \App\Services\OptionRepository::class);
|
|
}
|
|
}
|