Files
LMS/app/Providers/AuthServiceProvider.php
T
mirivladandQwen-Coder 2271abf732 CRUD организаций - Этап 2
 OrganizationController (index, create, store, show, edit, update, destroy)
 OrganizationPolicy (viewAny, view, create, update, delete)
 Маршруты: /admin/organizations (resource)
 Blade-шаблоны:
  - admin/organizations/index.blade.php (список с пагинацией)
  - admin/organizations/create.blade.php (форма создания)
  - admin/organizations/show.blade.php (просмотр + статистика)
  - admin/organizations/edit.blade.php (форма редактирования)
 Обновлённое меню в dashboard/admin.blade.php

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-26 08:41:45 +08:00

28 lines
591 B
PHP
Executable File

<?php
namespace App\Providers;
use App\Models\Organization;
use App\Policies\OrganizationPolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The model to policy mappings for the application.
*
* @var array<class-string, class-string>
*/
protected $policies = [
Organization::class => OrganizationPolicy::class,
];
/**
* Register any authentication / authorization services.
*/
public function boot(): void
{
//
}
}