- Add trial balance and general ledger pages to client resource with interactive tables - Implement sales and expenses relation managers for client-specific transactions - Enhance transaction handling with proper tax and withholding calculations - Add date casting to Transaction model and define client relationships - Configure super admin role bypass in AppServiceProvider - Update Filament components and fix JavaScript formatting issues
32 lines
632 B
PHP
32 lines
632 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Policies\RolePolicy;
|
|
use Illuminate\Support\Facades\Gate;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Spatie\Permission\Models\Role;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Gate::before(function ($user, $ability) {
|
|
return $user->hasRole('super_admin') ? true : null;
|
|
});
|
|
|
|
Gate::policy(Role::class, RolePolicy::class);
|
|
}
|
|
}
|