1
我已經試過$this->getName()
的laravel工作我如何得到一份工作的名義laravel 5
裏面這是我的樣本作業類
class PrepareCustomersSearchExportJob extends Job implements SelfHandling, ShouldQueue
{
use InteractsWithQueue, SerializesModels;
private $path;
private $filename;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($path, $filename)
{
$this->path = $path;
$this->filename = $filename;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
echo 「Name = 「. $this->getName();
}
}
但上面的方法告訴我getName()
ISN」定義。
感謝您的幫助。