@thomas.midhun1@gmail.com Maybe start here: https://laravel.com/docs/8.x/eloquent-relationships
Apr 20, 2021
7
Level 1
how to access three models and get data
what I mean is how to access a specific database table with foreign key connected,like this way
$user = auth()->guard(GuardType::STAFF)->user();
$schedules = $user->business->staffmembers->staffschedules;
then we have all details about staff_schedules tables in $schedules. So please help me to make this.
Please or to participate in this conversation.