Laravel Spatie Model Status

Asked

Viewed 98 times

0

I need help implementing a request status. I am on a project that in the order session, I detail a specific request. Inside it will have a selectto select the STATUSof the request, if it was pago, entregue, cancelado and etc.

But I don’t know the best way to implement it, they gave me a package that is: https://github.com/spatie/laravel-model-status#assign-statuses-to-eloquent-models

Where has situation of the request is to come the STATUS of the request and also where I can change it.

inserir a descrição da imagem aqui

  • Welcome, young man. Why don’t you try implementing this "at hand"? You can easily do this by creating a table status_pedido and relating it to a field status_pedido_id. I personally find it a waste to use a lib just for that.

  • I tbm, but the project manager would use this to make the status. I for one had done the way you said, but...

  • Project manager sometimes more disruptive than helpful.

  • Do you want instructions to run the installation? In the GITHUB project itself you are teaching this. Try to translate the page and perform the steps calmly.

  • This is already installed in the project, follow the steps but nothing comes out. I have never used this package and particularly find it quite useless, but the problem is still that it has 12 status, and it is divided into profiles, type ACL, that each profile can only change certain status.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.