subWeek(); $history = app('db')->select(' SELECT * FROM tasks_history as h WHERE datetime < :lastweek ', [ 'lastweek' => $lastweek ]); } }