Support the ongoing development of Laravel.io →
Input Views Blade
Last updated 1 year ago.
0

You need to do like this

<?php
                $metaAuthorName = $post->user->name;
?>

If you do with " " , you will save "($post->user->name)" in $metaAuthorName, but if you do $metaAuthorName = $post->user->name you will save the value of $post->user->name into $metaAuthorName

0

dormidosan said:

You need to do like this

<?php
               $metaAuthorName = $post->user->name;
?>

If you do with " " , you will save "($post->user->name)" in $metaAuthorName, but if you do $metaAuthorName = $post->user->name you will save the value of $post->user->name into $metaAuthorName

Thanks , this work perfect.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Medow medow Joined 25 Sep 2015

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.