fix js roles and add back button on card header

This commit is contained in:
arifal hidayat
2025-02-23 07:08:50 +07:00
parent d49035ce8d
commit c3c7b8e3ec
14 changed files with 252 additions and 233 deletions

View File

@@ -21,7 +21,7 @@ class RoleRequest extends FormRequest
*/
public function rules(): array
{
$roleId = $this->route('role');
$roleId = $this->route('role_id');
return [
'name' => 'required|string|max:255|unique:roles,name,' . ($roleId ?? 'NULL') . ',id',
'description' => 'nullable|string',