New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Relational field type with Eloquent Models

Nicolas VARROT March 31, 2021 by Nicolas VARROT

Hello, I'm currently working on statamic v3 with the flat file storage driver on an existing Laravel app. My Laravel app has an other Back Office where I can create some records through the Eloquent ORM (Records are stored in the Database). I would add a select field on a Statamic Blueprint where I can choose between these Eloquent based records. I saw that an Eloquent driver already exists for entries, but I don't want my Eloquent Model become Collection/Entries in Statamic, and I want to stay with flat files in statamic. Have someone already experienced this usecase ? Is there a way to create a custom Field Type to make this working ? Thanks

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies