Support the ongoing development of Laravel.io →
Database Eloquent Forms
Last updated 2 years ago.
0

Anyone?

Last updated 2 years ago.
0

I can't quite understand your problem.

Are you trying to make the title attribute visible in Page model even though it is located in PageLocale?

Last updated 2 years ago.
0

I don't get it in 100%, but let's give it a go.

If you want to populate form for a page edit view, there is no other way than calling a relation if title is part of a different model. It should be as easy as:

$page_edit->locale('fr')->title;

You could also edit page's locale, not page itself, I guess if you are managing language variations all data regarding page is there. Only similarities I can think of are edit times, id etc. Hard to say without bigger picture.

About forum, it is a custom script.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tbergeron tbergeron Joined 6 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.