dannas's avatar

Data model values with old values

Hello everyone.

I've uploaded my Laravel application to the Internet and I'm facing a strange problem. When I update the tables from my blade, I immediately see the updated records in the database. Trying to understand the problem, it seems as if the data is not being returned to me at all.

public function edit(fgasProcedure $fgasProcedure) { $block1 = fgasProcBlock1::findOrFail($fgasProcedure->block1_id); $b1_code = $block1->fiscalCode; .... $data=[ "procedure" => $procedure, 'block1' => $block1, 'b1_code' => $b1_code, ]; dump($data);

In the blade dump, I see the old values.

The b1_code tag was a test, but if I query on another blade, it works correctly.

From Tinker, the command $block1 = fgasProcBlock1::findOrFail($fgasProcedure->block1_id); returns the expected result. And it works correctly locally.

What could it be? Thank all

0 likes
2 replies
Snapey's avatar

Not really making a lot of sense.

Also, formatting your question might help, but .... does nothing to explain the problem

axiojet's avatar

Did you import: App\Models\fgasProcedure?

Please or to participate in this conversation.