NoticeTypeEnum::toArray()); InertiaSharedRegistry::add('auth.policies.notices', fn () => [ 'viewAny' => Gate::allows('viewAny', Notice::class), 'viewTrash' => Gate::allows('viewTrash', Notice::class), 'create' => Gate::allows('create', Notice::class), ]); InertiaSharedRegistry::add('auth.policies.invoicePackages', fn () => [ 'viewAny' => Gate::allows('viewAny', InvoicePackage::class), 'viewTrash' => Gate::allows('viewTrash', InvoicePackage::class), 'create' => Gate::allows('create', InvoicePackage::class), ]); InertiaSharedRegistry::add('auth.policies.invoiceCompanies', fn () => [ 'viewAny' => Gate::allows('viewAny', InvoiceCompany::class), 'viewTrash' => Gate::allows('viewTrash', InvoiceCompany::class), 'create' => Gate::allows('create', InvoiceCompany::class), ]); InertiaSharedRegistry::add('auth.policies.gitlabProjects', fn () => [ 'viewAny' => Gate::allows('viewAny', GitlabProject::class), 'viewTrash' => Gate::allows('viewTrash', GitlabProject::class), 'create' => Gate::allows('create', GitlabProject::class), ]); InertiaSharedRegistry::add('auth.policies.sites', fn () => [ 'viewAny' => Gate::allows('viewAny', Site::class), 'viewTrash' => Gate::allows('viewTrash', Site::class), 'create' => Gate::allows('create', Site::class), ]); } }