title: How to pass Eloquent Data to blade component?
body: <p><strong>Hello</strong>,</p>
  
  <p>I have a blade Layout called: 
  <strong><code>profile.blade.php</code></strong> // component</p>
  
  <p>And I have a blade file <strong>infos</strong> which extends from <code>profile.blade.php</code> component.
  On my controller, I have a profile method:</p>
  
  <pre><code>public method profile(User $user) {
     return view('infos.blade.php', compact('user'));
  }
  </code></pre>
  
  <p>When I try to use the variable <strong>user</strong> to the <strong>profile.blade.php componen</strong>t, I have an error that says "<strong>undefined user variable</strong>"</p>
  
  <p>My question is how can I get the data I received from my controller to <strong>Blade Component profle</strong> ?
  Because that part of component will be used many times.</p>
  
  <p>Thanks.</p>