title: Handling different session profiles in Laravel 4
body: <p>I'm developing a system and have different profiles with the same View Page just the information is different regarding to the user information, so when a specific user login, this user can open your user profile but other guest user just can see some specific information because is not the owner of the profile.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>mysite.com/user/user_1</li>
  <li>mysite.com/user/user_2</li>
  </ul>
  
  <p>If the user_1 login, can see your full profile and if visit the profile of the user_2 just can see some information, and viceversa.</p>
  
  <p>I can't apply the basic before auth filter because not only one user can login in the system.</p>
  
  <p>I suppose that can't apply this basic auth, because if one user login can see all profiles and information just filtering the auth if is logged or not.</p>
  
  <pre><code>public function __construct() 
  {
      $this-&gt;beforeFilter('auth', array('only'=&gt;array('getProfile')));
      $this-&gt;beforeFilter('auth', array('only'=&gt;array('getSettings')));
      ...
  }
  
  public function getProfile()
  {
  
      $user_information = //get_from_database
      return $this-&gt;layout-&gt;content = View::make('user.profile')
          -&gt;with('user',$user_information);
  
  }
  
  public function getSettings()
  {
  
      $user_information = //get_from_database
      return $this-&gt;layout-&gt;content = View::make('user.settings')
          -&gt;with('user',$user_information);
  
  }
  </code></pre>
  
  <p>So, I want to know if exists a way to do in Laravel.
  Regards!</p>