Support the ongoing development of Laravel.io →
Samuel Lui

Samuel Lui

Joined 24 Apr 2019

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

Why User::find method call User constructor 3 times?

In api.php Route::get('/abc', 'App\[email protected]'); In UserController.php public function abc(...

Likes Replies
2 years ago

Why User::find method call User constructor 3 times?

Dear all, I feel sorry about that. Today I repeat the experience again. The constructor have been ca...

0 Likes
2 years ago

Why User::find method call User constructor 3 times?

No, the /abc route place at the top of api.php without any middleware auth

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.