-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Description
- Laravel Version: #v8.23.1
- PHP Version: Fixed typo on Workbench command #7.4
- Database Driver & Version:
Description:
Im not using laravel, using lumen. But this problem related to package we all use
illuminate/database version 8.24
Illuminate\Database\Eloquent\Factories\Factory
Use
use Illuminate\Contracts\Application;
instead of
Illuminate\Contracts\Foundation\Application;
this exception in try catch block - but i don't see reason not to using correct namespace
Steps To Reproduce:
File: \vendor\illuminate\database\Eloquent\Factories\Factory.php
/**
* Get the application namespace for the application.
*
* @return string
*/
protected static function appNamespace()
{
try {
return Container::getInstance()
->make(Application::class)
->getNamespace();
} catch (Throwable $e) {
dd($e->getMessage());
return 'App\\';
}
}
alexei-shumskii and vborduja
Metadata
Metadata
Assignees
Labels
No labels