This repository has been archived on 2025-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
Files
lean_in_world/app/Providers/AppServiceProvider.php
meghamalore eed0ce11d2 first commit
2024-07-04 16:57:26 +05:30

30 lines
584 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Models\Admin\latest_update;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
// Fetch the latest update data
$show_update = latest_update::all()->toArray();
// Share the $update variable with all views
view()->share('update', $show_update);
}
}