first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Support;
use App\Models\User;
class RoleRedirect
{
public static function routeFor(User $user): string
{
if ($user->isTechnician()) {
return 'my-tasks';
}
if ($user->isClient()) {
return 'my-requests.index';
}
return 'dashboard';
}
}