Penambahan FrontEnd All-New-Manufacture
This commit is contained in:
33
app/Providers/ViewServiceProvider.php
Normal file
33
app/Providers/ViewServiceProvider.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Softseting;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ViewServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
View::composer('*', function ($view) {
|
||||
$settings = Softseting::first();
|
||||
$view->with('locationSettings', $settings);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user