laravel get only validated data

Solutions on MaxInterview for laravel get only validated data by the best coders in the world

showing results for - "laravel get only validated data"
Lisa
21 May 2016
1public function store(Request $request)
2{
3   
4    $validatedData = $request->validate([
5        'title' => 'required|unique:posts|max:255',
6        'body' => 'required',
7    ]);
8
9}
10