5
5
5L4VIK2020-11-21 15:04:02
Laravel
5L4VIK, 2020-11-21 15:04:02

PHP, dumb with database, laravel, how to change ID?

I want to name the ID not just "id", but "idu", and so I get an error and says that the ID is not found, everything is fine in the code, when I change "idu" to "id" in the database, it starts working, I don't Can I name the ID by my name? https://cdn.discordapp.com/attachments/68989986570...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VicTHOR, 2020-11-21
@5L4VIK

https://laravel.com/docs/8.x/eloquent#primary-keys

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question