Current File : //proc/thread-self/root/proc/self/root/home/tradevaly/www/app/Providers/AppServiceProvider.php |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator;
use App\Models\Logo;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Paginator::useBootstrap();
\Illuminate\Support\Facades\URL::forceScheme('https');
$this->appData = Logo::first();
view()->composer('backend.ayaan.master', function($view) {
$view->with(['logo' => $this->appData]);
});
$this->userData = Logo::first();
view()->composer('user.ayaan.master', function($view) {
$view->with(['logo' => $this->userData]);
});
$this->frontData = Logo::first();
view()->composer('frontend.layouts.app', function($view) {
$view->with(['logo' => $this->frontData]);
});
}
}