jeudi 23 novembre 2017

Session in Task Scheduling

I need to get Session in Laravel Task Scheduling.
Below is my UserActivity Class

<?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);
        }
    }

I got empty array in laravel.log



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zi6jp2
via IFTTT

Aucun commentaire:

Enregistrer un commentaire