esaeng's avatar

Illuminate\Contracts\Container\BindingResolutionException Target class [App\Console\EmailInactiveUsers] does not exist.

C:\Users\N.A TRADERS 105\laravel\AuthenticateSys>
C:\Users\N.A TRADERS 105\laravel\AuthenticateSys>php artisan email:inactive-user
s

   Illuminate\Contracts\Container\BindingResolutionException

  Target class [App\Console\EmailInactiveUsers] does not exist.

  at C:\Users\N.A TRADERS 105\laravel\AuthenticateSys\vendor\laravel\framework\s
rc\Illuminate\Container\Container.php:807
    803|
    804|         try {
    805|             $reflector = new ReflectionClass($concrete);
    806|         } catch (ReflectionException $e) {
  > 807|             throw new BindingResolutionException("Target class [$concre
te] does not exist.", 0, $e);
    808|         }
    809|
    810|         // If the type is not instantiable, the developer is attempting
 to resolve
    811|         // an abstract type such as an Interface or Abstract Class and
there is

  1   C:\Users\N.A TRADERS 105\laravel\AuthenticateSys\vendor\laravel\framework\
src\Illuminate\Container\Container.php:805
      ReflectionException::("Class App\Console\EmailInactiveUsers does not exist
")

  2   C:\Users\N.A TRADERS 105\laravel\AuthenticateSys\vendor\laravel\framework\
src\Illuminate\Container\Container.php:805
      ReflectionClass::__construct("App\Console\EmailInactiveUsers")

C:\Users\N.A TRADERS 105\laravel\AuthenticateSys>

I have EmailInactiveUsers class in console directory.. but facing this error while trynna send notifications to the inactive users

0 likes
5 replies
tykus's avatar

Does that class have the correct namespace?

<?php

namespace App\Console;

class EmailInactiveUsers extends ...
2 likes
tykus's avatar

Ah, okay. Please mark the best reply above in that case

Please or to participate in this conversation.