klasss Posted August 15, 2021 at 10:57 AM Report Share #623164 Posted August 15, 2021 at 10:57 AM Olá a todos , Existe forma de usar os dados que estão no foreach dentro de ' ' ? @foreach($itens as $item) { title: {{$item->title}}, start: {{$item->start}}, end: {{$item->end}} }, @endforeach O que quero é que o resultado fique dentro de '' title: 'teste', start: '2020-09-07', end: '2020-09-10' alguma solução para este meu problema? Obrigado Link to comment Share on other sites More sharing options...
tiago.f Posted August 15, 2021 at 11:43 AM Report Share #623165 Posted August 15, 2021 at 11:43 AM Olá @foreach($itens as $item) title: '{{$item->title}}', start: '{{$item->start}}', end: '{{$item->end}}' @endforeach Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now