app/Http/Requests/CourseRequest.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 [
            'title' => 'required',
            'description' => 'required',
            'prise' => 'required|numeric',
            'ts_expire' => 'required|date|after:now',
            'is_finished' => 'required|in:0,1',
            'is_active' => 'required|in:0,1',
        ];
    }
public function rules ( ) { return [ 'title' => 'required' , 'description' => 'required' , 'prise' => 'required|numeric' , 'ts_expire' => 'required|date|after:now' , 'is_finished' => 'required|in:0,1' , 'is_active' => 'required|in:0,1' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .