1
Laravel Task Scheduling에서 세션을 가져와야합니다.
다음은이 콘솔 명령입니다, 어떤 세션이 없습니다 내 UserActivity 클래스작업 스케줄링의 세션
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class UserActivity extends Command
{
protected $signature = 'Example:test';
protected $description = 'testing';
public function __construct()
{
parent::__construct();
}
public function handle()
{
$value = \Session::all();
\Log::alert($value);
}
}
내가 laravel.log
감사를 세션에 액세스 할 수 없습니다 –