Preliot

Results 12 comments of Preliot

Two years ago i dropped this package in favour of Laravel Nova, bevause they support nested data. In that project i use it for things like: order detail: 1. crud...

> > > Did you ever manage to sort this out? I'm also trying in a Nova action and getting `Class name must be a valid object or a string`...

This is still an issue, unfortunatly.

- laravel-json-api/laravel: 2.3.0 - laravel/framework: 8.83.9

I've 'fixed' this by using this rule (but i wonder if this is the right way): ```php public function rules(): array { $user = Auth::user(); return [ \\... 'catchall' =>...

But this would mean the field: - is not writable for ! su users (needed) - not readable for ! su users (unwanted side effect).

Now i understand, you're talking about **future** functionaliy. I was under the impression it should be possible somehow now.

```php \Laravel\Nova\Fields\BelongsTo::make('Distributor', 'distributor', DistributorResource::class) ->rules('required'); \NovaAjaxSelect\AjaxSelect::make('Client', 'client_id') ->get(config('nova.path') . "/orglevel/distributors/{distributor}/clients") ->parent('distributor'); \NovaAjaxSelect\AjaxSelect::make('Location', 'location_id') ->get(config('nova.path') . "/orglevel/clients/{client_id}/locations") ->parent('client_id'); \NovaAjaxSelect\AjaxSelect::make('Department', 'department_id') ->get(config('nova.path') . "/orglevel/locations/{location_id}/departments") ->parent('location_id'); \NovaAjaxSelect\AjaxSelect::make('User', 'user_id') ->get(config('nova.path') . "/orglevel/departments/{department_id}/users") ->parent('department_id'); ```...

@dillingham If you have the time, can you confirm that this is a legit bug? Or if it's not?

Is it possible to add the translation for this string? Would appreiciate the effort! PR #22 seems to fix it , but it seems abondoned.