php - Class 'SendEmail' not found while doing Amazon SQS queue -


i followed this official guide in order implement amazon sqs mailing system laravel 5 project

i've done executing both essential commands doc:

php artisan queue:table php artisan make:command sendemail --queued 

the second line has created file app/commands/sendemail.php me expected, contains:

<?php namespace app\commands;  use app\commands\command;  use illuminate\queue\serializesmodels; use illuminate\queue\interactswithqueue; use illuminate\contracts\bus\selfhandling; use illuminate\contracts\queue\shouldbequeued;  class sendemail extends command implements selfhandling, shouldbequeued {      use interactswithqueue, serializesmodels;      /**      * create new command instance.      *      * @return void      */     public function __construct()     {         //     }      /**      * execute command.      *      * @return void      */     public function handle()     {         //     }  } 

now, try run simple laravel queue command:

queue::push(new sendemail($message)); 

then, got error message:

fatalerrorexception in candidatecontroller.php line 47: class 'sendemail' not found 

i have no clue. tried including "app/commands" "classmap" of composer.json still no luck

this controller method triggers error:

public function get_testemail()     {         queue::push(new sendemail( array(       // <<< line 47             'can_id' => 105,             'template'=>'candidate_register'             )));         var_dump($result);         die();     } 

really, appreciate helps!

thank in advance, sir /|\

nvm, fixed adding

use app\commands\sendemail; 

to top of file...


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -