Feat: Create Common Dropdown file

This commit is contained in:
Sallu9007
2025-03-23 18:21:52 +05:30
parent 1ba5f672fb
commit 07932d7194
3 changed files with 42 additions and 11 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
class AppServiceProvider extends ServiceProvider
{
@@ -20,5 +21,8 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
//
View::composer('*', function ($view) {
$view->with('dropdowns', config('dropdowns'));
});
}
}