first work on front events

This commit is contained in:
Romain committed 2020-08-24 07:55:32 +02:00
1 parent 0f4250a029
commit f466ce7cc9
17 files changed
+575 -32

No files matched your search

+6 -2
View File
@@ -14,11 +14,15 @@ class EventController extends Controller
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
* @return \Illuminate\Http\Response|object
*/
public function index()
{
//
$events = Event::all();
return (EventResource::collection($events))
->response()
->setStatusCode(200);
}
/**