title: Class App\Policies\StatusPolicy does not exist
body: <p>I setup my classes so I can use <a href="https://laravel.com/docs/5.6/authorization" rel="nofollow noreferrer">Laravel Authorization</a> and use the Policies feature. But I keep getting this error (Class App\Policies\StatusPolicy does not exist) when defining the middleware to my methods. This is what I have:</p>
  
  <p>AuthServiceProvider.php</p>
  
  <pre><code>namespace App\Providers;
  
  use Illuminate\Support\Facades\Gate;
  use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
  
  class AuthServiceProvider extends ServiceProvider
  {
      /**
       * The policy mappings for the application.
       *
       * @var array
       */
      protected $policies = [
          'App\Status' =&gt; 'App\Policies\StatusPolicy',
      ];
  
      /**
       * Register any authentication / authorization services.
       *
       * @return void
       */
      public function boot()
      {
          $this-&gt;registerPolicies();
  
          //
      }
  }
  </code></pre>
  
  <p>StatusController.php</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use App\Status;
  use Illuminate\Http\Request;
  
  class StatusController extends Controller
  {
  
      public function __construct()
      {
           $this-&gt;middleware('can:list,App\Status')-&gt;only('index');
           $this-&gt;middleware('can:update,status')-&gt;only('edit');
      }
  
      // ...
  </code></pre>
  
  <p>StatusPolicy.php (generated by php artisan make:policy StatusPolicy --model=Status</p>
  
  <pre><code>namespace Policies;
  
  use App\User;
  use App\Status;
  use Illuminate\Auth\Access\HandlesAuthorization;
  
  class StatusPolicy
  {
      use HandlesAuthorization;
  
      /**
       * Verifica se o usuário tem permissão para listar os status.
       *
       * @param  \App\User  $user
       * @return bool
       */
      public function list(User $user)
      {
          return true;
      }
  
      /**
       * Determine whether the user can view the status.
       *
       * @param  \App\User  $user
       * @param  \App\Status  $status
       * @return mixed
       */
      public function view(User $user, Status $status)
      {
          //
      }
  
      /**
       * Determine whether the user can create statuses.
       *
       * @param  \App\User  $user
       * @return mixed
       */
      public function create(User $user)
      {
          //
      }
  
      /**
       * Determine whether the user can update the status.
       *
       * @param  \App\User  $user
       * @param  \App\Status  $status
       * @return mixed
       */
      public function update(User $user, Status $status)
      {
          return true;
      }
  
      /**
       * Determine whether the user can delete the status.
       *
       * @param  \App\User  $user
       * @param  \App\Status  $status
       * @return mixed
       */
      public function delete(User $user, Status $status)
      {
          //
      }
  }
  </code></pre>