29 lines
574 B
PHP
29 lines
574 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\View;
|
|
use App\Models\TypeItems;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
View::composer('components.layouts.app.sidebar', function ($view) {
|
|
$view->with('typeitems', TypeItems::orderBy('name')->get());
|
|
});
|
|
}
|
|
}
|