app/Http/Requests/ChildPageRequest.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|max:255',
            'body' => 'required',
            'parent_id' => 'required',
        ];
    }
public function rules ( ) { return [ 'title' => 'required|max:255' , 'body' => 'required' , 'parent_id' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .