-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audit presentation #206
Comments
Have a look at the documentation, more specifically the Getting Audits section. |
Basically, you should get $audits = $someModel->audits(); rather than calling |
thank. ive miss something. |
I was running into the same issue. Is there a way to get all audit entries? I have an admin page that show all updates, regardless of model. |
Possible fix for owen-it#206, not tested for side-effects, but seems to run OK with local dataset.
Gracias, andaba buscando un error, pero con tu post ya se como puedo solucionarlo, muchas gracias. |
i dont understand ;D |
i tried to display the record.
this is my model.
namespace App;
use OwenIt\Auditing\Models\Audit as AuditModel;
class Audit extends AuditModel
{ }
this is my controller
public function index()
{
$audits = Audit::all();
return view('audit.index', compact('audits'));
}
this is the blade
@forelse ($audits as $audit)-
@lang('post.updated.metadata', $audit->getMetadata())
when run it show
FatalErrorException in Audit.php line 167:
Call to a member function hasGetMutator() on null
what did i miss?
thank for the attention. thank you.
The text was updated successfully, but these errors were encountered: