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
{{ message }}
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
Environment:
Description:
Following the documentation, this command
php artisan resource-file:createcould not work with--relationsparameters.Steps:
php artisan resource-file:append Post --fields="name:another" --relations="name:comments;type:hasMany;field:title;params:App\Models\Comment|post_id|id"Running the cammand above would generate
ErrorException
Undefined offset: 1
The culprit seems to be the line below
A quick dirty fix was changing the line to:
list($key, $value) = Str::split(':', $part);