![](/img/trans.png)
[英]How to create the conditions on the model of eloquent? (Laravel 5.3)
[英]how to create eloquent in laravel
我想使用模型公司在表類別中獲取名稱
餐桌公司
id -> primary key
name
表格過帳
id -> primary key
id_posting_job -> foreign key
id_cattegory -> foreign key
name
餐桌類
id -> Primary Key
name
在我的關系數據庫中
如果通過模型公司進行訪問,在類別中獲取數據名稱的雄辯能力是什么?
謝謝
在這里查看文檔 。 我認為這非常簡單。
總的來說,建立基本關系是輕而易舉的事情。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.