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