vendredi 26 mai 2017

How to make a Input type select list with database from other table - Laravel 5.4

i want to make a input form where in that form i have Input type="select" and i need to select a field from other table in my database.
I doesnt have idea how to do that. Can Anyone help me?

I already tried with a static data (not from database), and the result is a number. In example i make a list to select : Admin and User. But when i pick Admin, the result that saved to database is 0, and the result is 1 if i pick User.

But it if i use static data, now i need to pick it from dinamyc data (from database).

Thanks guys.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rXsQUM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire