Answers for "laravel blade @if isset"

1

isset else laravel

<!DOCTYPE html>
<html>
	<head>
		<title>
		</title>
	</head>
  	
  	<body>
        @isset($user)
            <p> user variable is define.</p>
        @endisset

        @isset($status)
            <p> status variable define.</p>
        @endisset

        @if(isset($admin))
            <p> admin variable is define.</p>
        @else
            <p> admin variable is not define.</p>
        @endif
  	</body>
</html>
Posted by: Guest on July-28-2021

Browse Popular Code Answers by Language