app/Http/Requests/CreateDosenPembimbingRequest.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|min:5',
            'gelar_belakang' => 'required',
            'email' => 'required|email|unique:users',
            'nidn' => 'required|numeric',
            'jk' => 'required',
            'avatar' => 'image|mimes:jpg,jpeg,png'
        ];
    }
public function rules ( ) { return [ 'nama' => 'required|min:5' , 'gelar_belakang' => 'required' , 'email' => 'required|email|unique:users' , 'nidn' => 'required|numeric' , 'jk' => 'required' , 'avatar' => 'image|mimes:jpg,jpeg,png' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .