app/Http/Requests/BlogCategoryCreateRequest.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|min:5|max:200',
            'slug'      =>  'max:200',
            'description'   => 'max:500|min:3',
            'parent_id'     =>  'required|integer|exists:blog_categories,id', exists from table
        ];
    }
public function rules ( ) { return [ 'title' => 'required|min:5|max:200' , 'slug' => 'max:200' , 'description' => 'max:500|min:3' , 'parent_id' => 'required|integer|exists:blog_categories,id' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// //exists from table