Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application::make() should not be called statically #37

Open
krokovicsmate opened this issue Jul 31, 2020 · 2 comments
Open

Application::make() should not be called statically #37

krokovicsmate opened this issue Jul 31, 2020 · 2 comments

Comments

@krokovicsmate
Copy link

In Laravel 7 when i call the duplicate method the error happen:

Non-static method Illuminate\Foundation\Application::make() should not be called statically

The error happen because the App used note the Facade

Need to replace this line in Cloneable trait:

// Deps
use App;

With this

// Deps
use Illuminate\Support\Facades\App;
@denisdulici
Copy link
Collaborator

Make sure you have this line in your Laravel application.

@krokovicsmate
Copy link
Author

Of course i have alias for the App. Else where in project working like charm, only in here has a problem with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants