app/Http/Requests/EditMahasiswaRequest.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',
            'nim' => 'required|numeric',
            'jk' => 'required',
            'agama' => 'required',
            'alamat' => 'required',
            'jurusan' => 'required',
            'tahun_angkatan' => 'required|numeric',
            'avatar' => 'image|mimes:jpg,jpeg,png'
        ];
    }
public function rules ( ) { return [ 'nama' => 'required|min:5' , 'nim' => 'required|numeric' , 'jk' => 'required' , 'agama' => 'required' , 'alamat' => 'required' , 'jurusan' => 'required' , 'tahun_angkatan' => 'required|numeric' , 'avatar' => 'image|mimes:jpg,jpeg,png' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .