Support the ongoing development of Laravel.io →

Samuel Lui

Joined 24 Apr 2019

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0
posted 5 years ago

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

In api.php Route::get('/abc', 'App\UserController@abc'); In UserController.php public function abc(...

0 Likes
4 Replies
replied 5 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
replied 5 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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.