First Upload Kering Portal

This commit is contained in:
2024-09-18 10:45:22 +02:00
commit cac681dd30
3032 changed files with 406956 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
namespace Vanguard\Http\Requests\Permission;
use Illuminate\Validation\Rule;
use Vanguard\Rules\ValidPermissionName;
class CreatePermissionRequest extends BasePermissionRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => [
'required',
new ValidPermissionName,
Rule::unique('permissions', 'name')
]
];
}
}