app/Http/Requests/PostRequest.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 [
            'category' => 'required',
            'title' => 'required|max:255|min:5|string',
            'content' => 'required',
            'status' => 'required',
            'published_at' => 'required',
            'thumbnail' => 'image|mimes:jpg,png,jpeg|max:2048',
            'tags' => 'array|required',
        ];
    }
public function rules ( ) { return [ 'category' => 'required' , 'title' => 'required|max:255|min:5|string' , 'content' => 'required' , 'status' => 'required' , 'published_at' => 'required' , 'thumbnail' => 'image|mimes:jpg,png,jpeg|max:2048' , 'tags' => 'array|required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .