Answers for "laravel @isset @else"

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
1

isset laravel

//In Controller
public function returnView() {
    return View::make('view')->with('param',$param);
}

//In View
@isset($param)
Posted by: Guest on June-22-2020

Browse Popular Code Answers by Language