R
R
Roman2019-02-28 12:01:09
Laravel
Roman, 2019-02-28 12:01:09

The Backpack for Laravel demo says "Please use CrudTrait on the model." - what to do?

Hello.
Installed the Backpack for Laravel demo. Installed, logged in, when trying to open the "Roles" or "Permissions" tab, it throws an exception 500:
Please use CrudTrait on the model.
who has experience with Backpack for Laravel - tell me plz - this is its normal behavior (maybe some add-on is simply missing) - or did something go wrong?
Is it generally worth dealing with, if the problems already started at the demo stage?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Arutyunov, 2019-02-28
@procode

It's simple: you need to register in the model use CrudTrait. This trait will add the necessary methods to the model so that the Backpack can pull the data it needs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question