i have a two table 1).customers (id,name,address)
and 2nd table Orders(id,item,price,Customers_id)
This is my model
This is my controller
Any help please?
Try to work using the model and not the DB, there are many features that you loose because of it.
Hope it works!!
The code change depending of the type of relationship, 1-1, n-n, 1-n. so there is no specific code, it will be customized according to user requirement
You can find all the details depending of the type of relationship, 1-1, n-n, 1-n here:https://laravel.com/docs/7.x/eloquent-relationships#inserting-and-updating-related-models
Hope it helps!!
This is simple task to send single ...READ MORE
Yes it is possible. You can either ...READ MORE
You can solve this error by ...READ MORE
It is always best practice to ...READ MORE
Node.js is an open source server environment ...READ MORE
Hello @ subham ,
If you want to access the ...READ MORE
Use the Docker Engine Api:Docker Engine API ...READ MORE
Hi Kartik, try the following script
(window.onload = ...READ MORE
This should do it:
this is a ...READ MORE
Already have an account? Sign in.