You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am creating an application where customers and projects and been linked to GitHub repositories and their packages. Now I have a command that gets the packages from GitHub and I want to run that command for each repository linked to a project - when - adding them.
When I use the modal in my EditPage it works and I can select a repository and then add another using Associate & associate another. Now the problem in test is the following error: TypeError: Filament\Tables\Table::getInverseRelationshipFor(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Collection given
When I add ->multiple to the top of the action the problem is resolved but I do not want the user to add add multiple items in one, I would want that to work if I can run the ->after for every repository selected in the modal.
So, how would I run the command for each associated repository OR how do I fix my error in the test.
Cheers
EDIT (The job mentioned above) :
class SyncPackagesAndCheckEOLJob implements ShouldQueue
{
use Dispatchable;
use InteractsWithQueue;
use Queueable;
use SerializesModels;
protected string $repositoryName;
public function __construct(string $repositoryName)
{
$this->repositoryName = $repositoryName;
}
public function handle(): void
{
Log::info('Fetching packages for repository: ' . $this->repositoryName);
Artisan::call('app:sync-repository-packages', [
'repositoryName' => $this->repositoryName,
]);
Artisan::call('app:check-package-eol', [
'repositoryName' => $this->repositoryName,
]);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Package
Form builder
Package Version
v3
How can we help you?
Hi, I am creating an application where customers and projects and been linked to GitHub repositories and their packages. Now I have a command that gets the packages from GitHub and I want to run that command for each repository linked to a project - when - adding them.
When I use the modal in my EditPage it works and I can select a repository and then add another using Associate & associate another. Now the problem in test is the following error:
TypeError: Filament\Tables\Table::getInverseRelationshipFor(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Collection given
When I add ->multiple to the top of the action the problem is resolved but I do not want the user to add add multiple items in one, I would want that to work if I can run the
->after
for every repository selected in the modal.So, how would I run the command for each associated repository OR how do I fix my error in the test.
Cheers
EDIT (The job mentioned above) :
Beta Was this translation helpful? Give feedback.
All reactions