added minor changes
Cette révision appartient à :
Parent
3d22824a7f
révision
0ba5f6c309
@ -23,6 +23,8 @@ public function index()
|
|||||||
'description' => $e->description,
|
'description' => $e->description,
|
||||||
'image' => asset('public/uploads/event/' . $e->image),
|
'image' => asset('public/uploads/event/' . $e->image),
|
||||||
'location' => $e->location,
|
'location' => $e->location,
|
||||||
|
'topic' => $e->topic,
|
||||||
|
'goal' => $e->goal,
|
||||||
'hosted_by' => $e->hosted_by,
|
'hosted_by' => $e->hosted_by,
|
||||||
'date' => date("F j, l, Y", strtotime($e->date)),
|
'date' => date("F j, l, Y", strtotime($e->date)),
|
||||||
);
|
);
|
||||||
@ -41,12 +43,12 @@ public function single($id)
|
|||||||
'description' => $event->description,
|
'description' => $event->description,
|
||||||
'image' => asset('public/uploads/event/' . $event->image),
|
'image' => asset('public/uploads/event/' . $event->image),
|
||||||
'location' => $event->location,
|
'location' => $event->location,
|
||||||
|
'topic' => $event->topic,
|
||||||
|
'goal' => $event->goal,
|
||||||
'hosted_by' => $event->hosted_by,
|
'hosted_by' => $event->hosted_by,
|
||||||
'date' => date("d m, Y", strtotime($event->date)),
|
'date' => date("F j, l, Y", strtotime($event->date)),
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
return response($data, 200);
|
return response($data, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Chargement…
Référencer dans un nouveau ticket
Block a user