Tuesday, July 4, 2017

[laravel5.5][Resolved] laravel yield in php

 In blade template, it's :

@yield("title")
In php code, it's : (text in green)
<?php echo View::getSection('title'); ?>

Reference:
https://laravel.com/docs/5.5/blade
https://stackoverflow.com/questions/47847610/laravel-yield-in-code-php

No comments :

Post a Comment