cloner
cloner copied to clipboard
Application::make() should not be called statically
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;
Make sure you have this line in your Laravel application.
Of course i have alias for the App. Else where in project working like charm, only in here has a problem with it.