mardi 5 avril 2016

Laravel namespace - class not found

I have the following class

<?php namespace App\Http\Controllers\InOut\PasswordReset;

use App\Http\Controllers\InOut\BaseIn;

class PasswordResetIn extends BaseIn
{
  public $email;

  function __construct($email)
  {
    $this->email = $email;
  }
}

And I using it in my controller like this:

<?php namespace App\Http\Controllers;

use App\Http\Controllers\InOut\PasswordReset\PasswordResetIn;
use App\Http\Controllers\InOut\PasswordReset\PasswordResetOut;
...

For some reason I am always getting this error:

Class 'App\Http\Controllers\InOut\PasswordResetIn' not found

I can't find any reason for this not to work, I have tried to get some information in the PSR-4 specs but nothing.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1RNbIGy
via IFTTT

Aucun commentaire:

Enregistrer un commentaire