first work on front events

This commit is contained in:
2020-08-24 07:55:32 +02:00
parent 0f4250a029
commit f466ce7cc9
17 changed files with 575 additions and 32 deletions

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);
}
/**