app/Http/Controllers/PlaceController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $request->validate([
            'address' => 'required',
            'coordinates' => 'required'
        ]);
        return Place::create($request->all());
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'address' => 'required' , 'coordinates' => 'required' ] ) ; return Place :: create ( $ request -> all ( ) ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .