title: Is it possible to check if any variable is passed from controller without looking at controller? Laravel
body: <p>I have this bellow method in my controller but for some reason I can't look at it which variables are passed to my blade view. Can I check if any variable is passed to view or not?</p>
  <pre><code>public function test()
      {
          $var1 = 'val1';
          $var2 = 'val2';
          return view('test', ['var1' =&gt; $var1, 'var2' =&gt; $var2]);
  
      }
  </code></pre>
  <p>Here in my view file I want to check if any variable exists that is passed from controller?</p>
  <pre><code>&lt;div&gt;
  // check if any variable is exists.
  &lt;/div&gt;
  </code></pre>