hipsterjazzbo / Landlord

A simple, single database multi-tenancy solution for Laravel 5.2+
MIT License
615 stars 138 forks source link

not working #96

Open morningmemo opened 6 years ago

morningmemo commented 6 years ago
$member->lectures()->attach(
                $lectureId,
                [
                    'user_ticket_id' => $userTicketId,
                    'status' => 'booked'
                ]
            );

not working in attach.. i got error

SQLSTATE[HY000]: General error: 1364 Field 'studio_id' doesn't have a default value (SQL: insert into `bookings` (`created_at`, `lecture_id`, `status`, `updated_at`, `user_id`, `user_ticket_id`) values (2018-03-21 16:19:42, 461, booked, 2018-03-21 16:19:42, 2, 2))