title: Laravel Redirect from Helper Class
body: <p>I'm trying to redirect to an external URL from a helper class.</p>
  <p>Here's my controller:</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Lead;
  use Illuminate\Http\Request;
  use App;
  use Helper;
  
  class MyController extends Controller
  {
      public function entities_get() {
          Helper::my_function(); // &lt;---- Call my Helper class method to redirect.
  
          return view( 'template' );
      }
  }
  </code></pre>
  <p>Here's my helper class used in the controller:</p>
  <pre><code>&lt;?php
  
  namespace App\Helpers;
  
  class Helper
  {
      public static function my_function()
      {
          return redirect()-&gt;away( 'https://www.google.com' ); // &lt;---- Not redirecting.
      }
  }
  </code></pre>
  <p>Why is the redirect() not working inside my_function()? Do I need to include some Laravel classes using the PHP &quot;use&quot; statement?</p>