-
##1対多
公式
https://readouble.com/laravel/10.x/ja/eloquent-relationships.html#one-to-many
テーブルの関係
| customer.model | purchase.model |
| --- | --- |
| 1 | 多 |
| id | customer.id |
customer
…
-
# Use Case
I have a model, `Calendar`, which has events from the database (An Eloquent model `occasion`)
But now, I am adding support for external events, such as an ICalendar Feed (a URL for .ics…
-
I could not find how do we perform the inverse polymorphic relation using this library.
Is there any way to perform the inverse polymorphic relation similar to laravel "**morphTo**":
https://larav…
-
https://github.com/justinkekeocha/udemy/blob/fdc6555aeeb4da81cfde8a64064899905aeb411f/app/Http/Controllers/CategoryController.php#L54
It's usually a good idea to load a model's relations and pass j…
-
This project needs explicitly stated relationships in migration files beside eloquent relation. I hope i have time to contribute.
-
> ### [Laravel 中文文件翻譯對照表與規範](https://github.com/laravel-taiwan/docs/wiki/規範&專有名詞對照)
各位好,今年我們嘗試一個新的做法:
我們先將全部的文件用 AI 翻譯過後,
接著用社群的力量,大家一起找到翻譯裡面可以更好的部分,一起提出調整
- [ ] artisan.md
- [ ] authenti…
-
see here: https://laravel.com/docs/8.x/eloquent-relationships#defining-custom-intermediate-table-models (idk whether it is good for us)
kdmnk updated
2 years ago
-
Hi,
Eloquent itself supports attach/detach/sync on many-to-many relationships. Is it possible to support those functions with multiple column keys? I briefly went through the code, they seem not su…
-
### Describe what you want
A model can have a one-to-many relation, but sometimes you might want just the "latest" or the "oldest" record of this relation. "Has one of many" relationship helps to acc…
-
# Database Schema for Persistent Browser-Based Game
## Issue Description
### Overview
We need to design and implement a comprehensive database schema for our persistent browser-based game. Th…