Mina M
Mina M
if I understand the problem correctly then why don't you do it like below public function subject(): MorphTo { if ( method_exists($this->morphTo()->getRelated(),'runSoftDelete') && config('activitylog.subject_returns_soft_deleted_models')) { return $this->morphTo()->withTrashed(); } return $this->morphTo();...
when I `dd($this->morphTo())` I found that the `parent` and the `related` models were already loaded in the collection.
No this is not about the filters in the documentation. it is related to "sparse fields" or as in the documentation "selecting fields" https://spatie.be/docs/laravel-query-builder/v5/features/selecting-fields the route will only accept table...
@captnCC can't test as your package only supports php ^8.0 while laravel-json-api supports php ^7.4|^8.0 and I am working on a php 7.4 environment also can u open the issues...
@lindyhopchris, so sorry for late reply, this month is the holidays month for me. :) I will surely work on that, should I put it as a PR request ?
@lindyhopchris I created that [Gist](https://gist.github.com/Mina-R-Meshriky/5a2ebf141fe5d8f36d59fd45ac7bacbb) for the belongsToManyWithPivot it will get the pivots if exists.
you can check the following https://github.com/laravel-json-api/eloquent/pull/19 But bear in mind, that this is a custom implementation, it is not supported by this package. nor is it officially supported by the...
This is for storing the data. You can control what to display using a resource file
In the resource file => relationships function => ```php $this->relation('relation')->withMeta([ 'Name' => $this->pivot->variable ]) ```
But what is the cause of the error. Enter to ur storage/logs and look at the error. The real error will be the one exactly after the unable to encode...