How I can get content from @yield
in PHP?
Example I have in app.blade.php:
@yield('image-url', asset('/img/metaog.png?2'))
I want getimagesize from image-url:
<?php
$image = getimagesize(yield('image-url', asset('/img/metaog.png?2')));
$width = $image[0];
$height = $image[1];
?>
How I can get this correctly? My code is not working.
@yield
for. – Deflagrate@yield
directive? – Clave