title: Blade @inject() not working on Laravel 5.2 for a custom Helper class
body: <p>I've created a custom Helper class under the App\Http\Helpers directory and I am injecting the class using the Blade <code>@inject()</code> injection like the following:</p>
  
  <p><code>@inject('Hello', 'App\Http\Helpers\Helper')</code></p>
  
  <p>And, I'm referencing <code>Hello</code> in the same view like the following:</p>
  
  <p><code>Hello::activity(1, 2, 3)</code></p>
  
  <p>However, this returns the following error:</p>
  
  <p><code>Fatal error: Class 'Hello' not found (View: /Users/sumon/Desktop/TimeCop/resources/views/diary/view.blade.php)</code></p>
  
  <p>Is there anything I'm missing?</p>
  
  <p>Here's the full class Helper class I've created:</p>
  
  <pre><code>&lt;?php
  
  namespace app\Http\Helpers;
  
  
  class Helper
  {
      public static function activity($keyboard, $clicks, $drags)
      {
          if (($keyboard + $clicks + $drags) / 3 &gt;= 100) {
  
              return 100;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 90) {
  
              return 90;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 80) {
  
              return 80;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 70) {
  
              return 70;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 60) {
  
              return 60;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 50) {
  
              return 50;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 40) {
  
              return 40;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 30) {
  
              return 30;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 20) {
  
              return 20;
          } elseif (($keyboard + $clicks + $drags) / 3 &gt;= 10) {
  
              return 10;
          }
  
          return 0;
      }
  }
  </code></pre>