I'm trying to access a custom pivot class directly through Artisan tinker like this: App\Registration::all()
. But it seems that classes that extend pivot are not directly accessible?
The Errormessage: Illuminate/Database/QueryException with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'teknologiskolen.registration' doesn't exist (SQL: select * from registration
where registration
.id
= 1 limit 1)'
\App\Registrations::all()
– Adnan MumtazRegistration
the pivot class? Is there an error? – Jonas StaudenmeirRegistration
is the pivot class, and @NMahurin I guess I'll have to access it through the related classes then... – Jacob Nielsenprotected $table = '...';
– Jonas Staudenmeir