title: Unable to use helper in controller of laravel app
body: <p>I'm building an application, now i'm created a helper
  
  
  <pre><code>class Students{
      public static function return_student_names()
      {
          $_only_student_first_name = array('a','b','c');
          return $_only_student_first_name;
      }
  }
  </code></pre>
  
  <p>now i'm unable to do something like this in controller</p>
  
  <pre><code>namespace App\Http\Controllers;
      class WelcomeController extends Controller
      {
          public function index()
          {
              return view('student/homepage');
          }
          public function StudentData($first_name = null)
          {
              /* ********** unable to perform this action *********/
              $students = Student::return_student_names();
              /* ********** unable to perform this action *********/
          }
      }
  </code></pre>
  
  <p>this is my helper service provider </p>
  
  <pre><code>namespace App\Providers;
  
  use Illuminate\Support\ServiceProvider;
  
  
  class HelperServiceProvider extends ServiceProvider
  {
  
      /**
       * Register the service provider.
       *
       * @return void
       */
      public function register()
      {
          foreach(glob(app_path().'/Helpers/*.php') as $filename){
              require_once($filename);
          }
      }
  }
  </code></pre>
  
  <p>i event added it as an alias in config/app.php file</p>
  
  <p><code>'Student' =&gt; App\Helpers\Students::class,</code></p>