Initial Commit
The initial public commit of MVGL website code.
This commit is contained in:
commit
b39ecf1638
2043 changed files with 215154 additions and 0 deletions
52
app/Providers/AppServiceProvider.php
Normal file
52
app/Providers/AppServiceProvider.php
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Core\Adapters\Theme;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
// if ($this->app->isLocal()) {
|
||||
// $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$theme = theme();
|
||||
|
||||
// Share theme adapter class
|
||||
View::share('theme', $theme);
|
||||
|
||||
// Set demo globally
|
||||
$theme->setDemo('demo1');
|
||||
|
||||
$theme->initConfig();
|
||||
|
||||
bootstrap()->run();
|
||||
|
||||
if (isRTL()) {
|
||||
// RTL html attributes
|
||||
Theme::addHtmlAttribute('html', 'dir', 'rtl');
|
||||
Theme::addHtmlAttribute('html', 'direction', 'rtl');
|
||||
Theme::addHtmlAttribute('html', 'style', 'direction:rtl;');
|
||||
Theme::addHtmlAttribute('body', 'direction', 'rtl');
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue