use Illuminate\Contracts\View\Factory as ViewFactory;
use App\Services\ViewFactory as Factory;
$this->app->bind(ViewFactory::class, Factory::class);
Target [Illuminate\View\ViewFinderInterface] is not instantiable while building [App\Services\ViewFactory].
namespace App\Services;
use Illuminate\View\Factory;
class ViewFactory extends Factory
{
}