%PDF- %PDF-
Direktori : /var/www/html/kpk/api/app/Http/Requests/Users/ |
Current File : /var/www/html/kpk/api/app/Http/Requests/Users/UserStoreRequest.php |
<?php namespace App\Http\Requests\Users; use App\Http\Requests\BaseRequest; class UserStoreRequest extends BaseRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|string|max:255', 'surname' => 'required|string|max:255', 'username' => 'required|string|max:255|unique:users,username', 'password' => 'required|string|min:6|confirmed', 'role_id' => 'required|integer|exists:roles,id', ]; } }