validate( // ... TASK: write validation here so that "title" field // would be required and unique in the "posts" DB table ); // Saving the post Post::create(['title' => $request->title]); return 'Success'; } }