/** * DashboardController constructor. */ public function __construct() { parent::__construct(); $end = Carbon::now()->minute(0); $this->limit = 16; $this->period = Period::create($end->copy()->subDays(30), $end); $this->country = env('ANALYTICS_COUNTRY'); }
public function __construct() { $this->period = 30; $this->limit = 16; $this->end = Carbon::today(); $this->start = Carbon::today()->subDays($this->period); $this->country = env('ANALYTICS_COUNTRY'); parent::__construct(); }
public function __construct() { $this->middleware('admins_only'); parent::__construct(); }