app/Http/Requests/StoreUserRequest.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 [
            'nama' => 'required',
            'username' => 'required|unique:users',
            'email' => 'required|unique:users',
            'password' => 'required',
            'role' => '',
            'gender' => '',
            'tanggal_lahir' => ''
        ];
    }
public function rules ( ) { return [ 'nama' => 'required' , 'username' => 'required|unique:users' , 'email' => 'required|unique:users' , 'password' => 'required' , 'role' => '' , 'gender' => '' , 'tanggal_lahir' => '' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .