Cant use Set Utility at the same time

is it normal, that we cant use Set Utility at the same time?
$set('start_date',$date->subMonth()->startOfMonth()->setDay(28));
$set('end_date',$date->startOfMonth()->setDay(20));
$set('start_date',$date->subMonth()->startOfMonth()->setDay(28));
$set('end_date',$date->startOfMonth()->setDay(20));
i tried that code it oly works for the first line, the second line doesnt work
2 Replies
christmex
christmexOP10mo ago
bumpp upp
LeandroFerreira
LeandroFerreira10mo ago
Please share the whole code you are trying to do

Did you find this page helpful?