app/Http/Requests/StoreUsersRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required',
            'email' => 'required|email|unique:users,email',
            'password' => ['required', 'string', 'min:8'],
            'code' => ['required'],
            'type_id' => ['required'],
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'email' => 'required|email|unique:users,email' , 'password' => [ 'required' , 'string' , 'min:8' ] , 'code' => [ 'required' ] , 'type_id' => [ 'required' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//            'active' => 'required', //            'imageFile'               => 'required|image', // 'facebook'       => ['nullable', 'url'],