N
N
NubasLol2018-12-13 19:44:55
Laravel
NubasLol, 2018-12-13 19:44:55

Laravel how to remove id for model?

How to make the $primaryKey not needed by the model, I want to make a model for the pivot table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-12-13
@JhaoDa

https://laravel.com/docs/5.6/eloquent#defining-models "Primary Keys" section.
PS Still planning to make videos and teach others?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question