Some phpcs tweaks
This commit is contained in:
parent
02e3ce42e0
commit
9cc53f9cbf
1 changed files with 9 additions and 3 deletions
|
@ -48,8 +48,14 @@ class PlacesController extends Controller
|
|||
*/
|
||||
public function store(): RedirectResponse
|
||||
{
|
||||
$data = request()->only(['name', 'description', 'latitude', 'longitude']);
|
||||
$place = $this->placeService->createPlace($data);
|
||||
$this->placeService->createPlace(
|
||||
request()->only([
|
||||
'name',
|
||||
'description',
|
||||
'latitude',
|
||||
'longitude'
|
||||
])
|
||||
);
|
||||
|
||||
return redirect('/admin/places');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue