platform/admin/app/Http/Requests/UpdateArticle.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', 'string'],
            'body' => ['required', 'string'],
            'thumbnail' => ['nullable', 'file', 'image', 'mimes:jpg,png,jpeg,svg'],
            'description' => ['required', 'string']
        ];
    }
public function rules ( ) { return [ 'title' => [ 'required' , 'string' ] , 'body' => [ 'required' , 'string' ] , 'thumbnail' => [ 'nullable' , 'file' , 'image' , 'mimes:jpg,png,jpeg,svg' ] , 'description' => [ 'required' , 'string' ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .