2016-10-03 10 views
0
FatalThrowableError in RegisterController.php line 104: 
Class 'Flash' not found 

これは上記のエラーはClass Flashが含まれていないと言っていますが、私は間違っていると思います。Laravel 5.3クラスのFlashが見つかりません

namespace App\Http\Controllers\Auth; 

use Flash; 
+0

あなたのFlashクラスはどこにありますか? –

+0

Flashがあなたのモデルクラスですか? –

+0

またはlaracasts/flashパッケージをインストールしましたか? –

答えて

0

あなたcontrollerする必要があります: -

namespace App\Http\Controllers; // change here 

use App\Flash; // rewrite this line 

use App\Http\Controllers\Controller; // add this line 

class RegisterController extends Controller 
{ 
// stuff here 
} 

https://laravel.com/docs/5.3/controllers

あなたFlashModelは次のようになります -

namespace App; 

use Illuminate\Database\Eloquent\Model; 

class Flash extends Model 
{ 
    // 
} 

https://laravel.com/docs/5.3/eloquent

+0

ヘルプのThx 名前空間を変更した場合、私の認証が壊れることはありませんか? –

+0

認証に外部ライブラリを使用しましたか? laravel認証については、次のリンクを確認してください: - https://laravel.com/docs/5.3/authentication –

関連する問題