ifox
10/25/2022, 2:35 PMsavchuk.ivan
10/25/2022, 2:38 PMthingasd
10/26/2022, 8:20 AMkalle
10/26/2022, 10:47 AMthingasd
10/26/2022, 11:25 AMifox
10/26/2022, 11:44 AM$indexOptions
ifox
10/26/2022, 11:44 AMdakaalim
10/26/2022, 10:34 PMifox
10/26/2022, 10:41 PMdakaalim
10/26/2022, 10:42 PMdakaalim
10/26/2022, 10:43 PMdakaalim
10/26/2022, 10:44 PM/auckland-airport
it should return me Auckland Airport
as its header.
But when I visit /christchurch-airport
, the header is still showing as Auckland Airport
instead of Christchurch Airport
dakaalim
10/26/2022, 10:45 PM@php
$transformed = _transform($block);
$data = $transformed['data'] ?? [];
@endphp
<div>$data['header']</div>
the variable $block
always grabs the very first row in the tableifox
10/26/2022, 10:47 PMdakaalim
10/26/2022, 10:49 PM@extends('layouts.app')
@section('permalink', route('location', ['slug' => $item->getSlug()]) ?? '')
@section('title', $title ?? '')
@section('description', $description ?? '')
@push('styles')
<style>
</style>
@endpush
@section('content')
@isset($published)
{!! $item->renderBlocks() !!}
@endisset
@endsection
@push('scripts')
<script>
</script>
@endpush
ifox
10/26/2022, 10:50 PMdd($item->blocks()->first())
ifox
10/26/2022, 10:50 PMdakaalim
10/26/2022, 10:53 PMifox
10/26/2022, 10:58 PMdakaalim
10/26/2022, 11:00 PMdakaalim
10/26/2022, 11:01 PMdakaalim
10/26/2022, 11:02 PMifox
10/26/2022, 11:03 PMdakaalim
10/26/2022, 11:05 PM$item
came from its transformerdakaalim
10/26/2022, 11:07 PMdakaalim
10/26/2022, 11:08 PM->first()
is the culpritifox
10/27/2022, 9:46 AMHip-Hop
10/27/2022, 9:55 AMifox
10/27/2022, 10:05 AMuwascan
10/27/2022, 3:17 PM