Mirrors the frontend catch-up in 570f17e: a substantial amount of
finished-but-never-committed backend work had accumulated locally.
- New CustomField module: admin-managed field definitions per client,
reorderable, typed values stored per client (backing the frontend's
ClientCustomFieldCard + settings/fields page)
- History entries switch from a hardcoded type enum to a dynamic,
admin-managed HistoryType module (reorderable, backing
settings/history-types)
- New Import module: CSV client import (backing settings/import)
- Clients table gains soft deletes (deleted_at)
- Supporting factories, seeders, policies, and feature tests for all
of the above
All 63 backend tests pass locally before this commit.
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
// use Illuminate\Support\Facades\Gate;
|
|
use App\Models\User;
|
|
use App\Modules\Client\Models\Client;
|
|
use App\Modules\Client\Policies\ClientPolicy;
|
|
use App\Modules\CustomField\Models\CustomFieldDefinition;
|
|
use App\Modules\CustomField\Policies\CustomFieldDefinitionPolicy;
|
|
use App\Modules\History\Models\HistoryEntry;
|
|
use App\Modules\History\Models\HistoryType;
|
|
use App\Modules\History\Policies\HistoryEntryPolicy;
|
|
use App\Modules\History\Policies\HistoryTypePolicy;
|
|
use App\Modules\User\Policies\UserPolicy;
|
|
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 = [
|
|
User::class => UserPolicy::class,
|
|
Client::class => ClientPolicy::class,
|
|
CustomFieldDefinition::class => CustomFieldDefinitionPolicy::class,
|
|
HistoryEntry::class => HistoryEntryPolicy::class,
|
|
HistoryType::class => HistoryTypePolicy::class,
|
|
];
|
|
|
|
/**
|
|
* Register any authentication / authorization services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|