Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel blade check if yielded content exists

<title>
    @if(View::hasSection('title'))
        @yield('title')
    @else
        Static Website Title Here
    @endif
</title>
Comment

PREVIOUS NEXT
Code Example
Php ::  
:: php dump 
::  
:: laravel query builder sum 
Php ::  
::  
::  
::  
::  
Php ::  
::  
::  
:: invalid datetime format 1292 
::  
::  
Php ::  
Php ::  
::  
:: pdo connect 
:: php redirect 404 page not found 
::  
::  
::  
:: how to get local current time in laravel 
:: php in html attributes 
::  
Php :: php check if input is int 
::  
Php ::  
::  
ADD CONTENT
Topic
Content
Source link
Name
8+5 =