WHEN TO USE FRESH VS REFRESH

Jan 13, 2024

Let's demonstrate the difference between the `fresh` and `refresh` methods

 

The core difference is that the `refresh` method copies the model instance by REFERENCE.

 

🔐 Members-Only Deep Dive

To read the full technical content, please log in.

Login
Mahmoud Ramadan

Mahmoud Ramadan

Mahmoud is the creator of Digging Code and a contributor to Laravel since 2020.