Add user management functionality: Implemented UserActions for editing and changing passwords, created UserPolicy for authorization checks, and integrated AuthServiceProvider for policy registration. Updated Filament configuration to utilize new user actions and adjusted localization for user-related actions. Enhanced .gitignore and CSS files for better organization.

This commit is contained in:
Ümit Tunç
2025-09-30 00:50:43 -03:00
parent 13dfa1ebda
commit eac0a3eda3
14 changed files with 208 additions and 4 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Providers;
use App\Models\User;
use App\Policies\UserPolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Spatie\Permission\Models\Role;
use App\Policies\RolePolicy;
class AuthServiceProvider extends ServiceProvider
{
/**
* The model to policy mappings for the application.
*
* @var array<class-string, class-string>
*/
protected $policies = [
User::class => UserPolicy::class,
Role::class => RolePolicy::class,
];
/**
* Register services.
*/
public function register(): void
{
//
}
/**
* Bootstrap services.
*/
public function boot(): void
{
$this->registerPolicies();
}
}