title: Laravel 5 Redirect from another method
body: <p>I want to create a redirect method that could be called from other methods. Unfortunately, I can't do it as I want (see source below). </p>
  
  <p>I propose a solution, but I want to redirect just calling the method, not doing more stuff.</p>
  
  <p><strong>My solution:</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>class FooController extends Controller
  {
  
      public function foo(Request $request)
      {
          if ($result = $this-&gt;__check($request)) {
              return $result;
          }
          return view('foo');
      }
  
      private function __ckeck(Request $request)
      {
          if (doSomething) {
              return redirect('/');
          }
          return false;
      }
  }
  </code></pre>
  
  <p><strong>What I want:</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>class FooController extends Controller
  {
  
      public function foo(Request $request)
      {
          $this-&gt;__check($request);
  
          return view('foo');
      }
  
      private function __ckeck(Request $request)
      {
          if (doSomething) {
              // redirect source &lt;--- what I want
          }
          return false;
      }
  }
  </code></pre>