Files
ladill-hosting/app/Providers/AppServiceProvider.php
T
isaaccladandCursor d3a379d5bc
Deploy Ladill Hosting / deploy (push) Successful in 26s
Add mobile topbar titles and show Afia on all mobile headers.
Route-based subtitle and page titles replace plain app labels in mobile topbars, and the Afia AI button is visible on mobile across topbars and mobile-page-header screens.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 16:30:31 +00:00

28 lines
607 B
PHP

<?php
namespace App\Providers;
use App\Models\HostingAccount;
use App\Policies\HostingAccountPolicy;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
use App\Support\MobileTopbar;
use Illuminate\Support\Facades\View;
class AppServiceProvider extends ServiceProvider
{
public function register(): void
{
//
}
public function boot(): void
{
Gate::policy(HostingAccount::class, HostingAccountPolicy::class);
View::composer(['partials.topbar'], function ($view) {
$view->with(MobileTopbar::resolve());
});
}
}