Model problem with mvc approach in current calendar project using laravel

I'm not sure if Event and User are models or if user has an array of events field in the user table. Need to make this connection in order to establish how dates are handled. Maybe Laravel is overkill for this scale of project since user only has their calendar page.
7 Replies
Jochem
Jochem2y ago
Modifying the built in User object is a pain in Laravel. Or rather probably Eloquent if you're entirely accurate. Event is an excellent example of something that should be a model. you need to store lots of extra data about an event, dates, times, description, title, maybe category info, invitees, reminder settings, repetition settings
MD
MD2y ago
That's the difficult part because the user creates the events and they login sp they'll need a password and username
Jochem
Jochem2y ago
you can't just shove that onto the user object and call it a day Laravel has a built-in authentication module iirc
Jochem
Jochem2y ago
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
MD
MD2y ago
I think so granted I didn't get to learn laravel throughly I'll need to tie a login blade to it
Jochem
Jochem2y ago
you're just building the backend, right?
MD
MD2y ago
Got to build it all actually since it's personal But yeah I also seen you can use FullCalendar Some 3rd party to help too
Want results from more Discord servers?
Add your server