how to pass multiple table data to view in laravel 5.2
<p>I have 3 tables in database,</p>

<h2>--User</h2>

<h2>--Profile</h2>

<h2>--Education</h2>

<p>User model</p>

<pre><code> public function profiledetails()
{
        return $this-&gt;hasOne('App\Profiledetails');
}

public function educationHasOne()
{
        return $this-&gt;hasOne('App\Education');
}
</code></pre>

<p>Profiledetails model</p>

<pre><code>public function user()
{
        return $this-&gt;belongsTo('App\User');
}
</code></pre>

<p>Education model</p>

<pre><code>public function user()
{
        return $this-&gt;belongsTo('App\User');
}
</code></pre>

<p>I am able to store the data.</p>

<p>I would like to view all table data in to one single webpage
I  use the below code to make that happen.</p>

<pre><code>  public function index()
 {
 $user = Auth::user()-&gt;id;
 $profile = array(
     User::find($user)-&gt;profiledetails,
     User::find($user)-&gt;educationHasOne 
 );
 return view('profile.index', ['profile' =&gt; $profile]);
}
</code></pre>

<p>When is use dd($variablename),  I am able to see all required field I needed, </p>

<p>Now, I would like to know how to pass all this data to view in single page.</p>