After a little more digging, turns out it was some code in my AuthServiceProvider boot method:
/**
* Register any application authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
Gate::before(function ($user) {
if ($user->hasGroup('admin')) {
return true;
}
});
// adds a gate for each permission name - checks whether the user has a group that matches one of the permission groups
// disabling because this is causing an issue with php artisan when the database isn't initialized
foreach ($this->getPermissions() as $permission) {
Gate::define($permission->name, function ($user) use ($permission) {
return $user->hasGroup($permission->groups);
});
};
Gate::before(function ($user) {
if ($user->hasGroup('admin')) {
return true;
}
});
}
It's trying to query for permissions when there's no tables created yet.
Anyone have a good strategy for handling this?