Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

birdietorerik's avatar

Execute old query

Hi!

Have this Query

After new record is stored in gpstracker value of timehole is 0

I tryed to clear cash

php artisan cache:clear

But still dosent set timehole = 2 ?

0 likes
8 replies
RicardoAugustoTulio's avatar

Please check in the flow if the value is not being rewritten somewhere in the code, you can put a dd right after saving and check that the value is still 2

	[...]
	$gpstracker->trackernumber = $trackernumber;
    $gpstracker->timehole = 2;//int($timeusedhole);

    $gpstracker->save();
	dd($gpstracker);
Snapey's avatar

correct column name?

Accessor with the same name?

birdietorerik's avatar

Hi!

This is getting so veard ??? Now, i finaly get it to work. But after changed $gpstracker->timehole = 2; To -> $gpstracker->timehole = 3;

It saves $gpstracker->timehole = 2; And not $gpstracker->timehole = 3;

Have Log:info in php code to, that doent show ?

So it must be some cashing issue ?

birdietorerik's avatar

@Sinnbeck

Please or to participate in this conversation.