These are pieces of Laravel 6.x code used to Make An Appointment feature.
Check it out: https://mentoring4you.com.br/perfil/103
This code contains:
- Model Agenda: events object
- Controller GoogleCalendarController: handle user's authentications to Google Calendar API, list and create calendar events.
- Controller AgendaController: control our calendar methods and roles, like checking available working hours to make an appointment and synchronizing the user's Google Calendar and local calendar.
- View agenda.blade.php: it shows the available hour intervals to make an appointment in the user profile.
You'll need to run: composer require nataliaalves/laravel-calendar
Your comments and suggestions will be welcome :)