app/Http/Requests/StudentRequest.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|max:255',
            "foto"=>'required|image',
            'alamat'=>'required|max:255',
            'kelas'=>'required|max:25'
        ];
    }
public function rules ( ) { return [ 'nama' => 'required|max:255' , " foto " => 'required|image' , 'alamat' => 'required|max:255' , 'kelas' => 'required|max:25' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .