How to check empty condition in laravel blade with directive?

Admin   Laravel   365  2021-03-17 16:40:05

Hello Friend,

if you don't use if condition with empty then you can use empty directive. we don't use manually php empty function then use this directive. in laravel use this types of directive then it's run fast and improve your website performance.




return true


In Laravel Blade



// $myVariable is "empty"...


I hope it can help you...