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
/**
* Grab the revision history for the model that is calling
*
* @return array revision history
*/
public function revisionable()
{
return $this->morphTo()->withTrashed();
}
This is basically a modified version of: https://github.com/VentureCraft/revisionable to include softdeleted data.
Perfectly working on mysql driver, but when I switched to oracle with this package Im getting an error: Call to undefined method Yajra\Oci8\Query\OracleBuilder::withTrashed()
@chrislandeza this seems like a bug. If you can, please do not hesitate to submit a PR. I rarely used morph and soft deletes so this might took me some time to verify and fix.
I have this method on my model:
This is basically a modified version of: https://github.com/VentureCraft/revisionable to include softdeleted data.
Perfectly working on mysql driver, but when I switched to oracle with this package Im getting an error:
Call to undefined method Yajra\Oci8\Query\OracleBuilder::withTrashed()
This error also occured in Laravel core:
laravel/framework#13886
But they already fixed it:
laravel/framework#13828
I'm using Laravel Framework version 5.2.41
Bug?
The text was updated successfully, but these errors were encountered: