This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

AlexeiKo
AlexeiKo

Hey, i'm trying to make simple thing : public function afterSave(){ $this->name = 'aaaa'; $this->save(); }

and getting error 500. apache log : PHP Fatal error: Maximum function nesting level of '1000' reached, aborting! in /Applications/MAMP/htdocs/anshlag/vendor/laravel/framework/src/Illuminate/Database/Grammar.php on line 109

But it updates the name. Whats wrong?

Thanks

uitlab
uitlab

I think your code is looping save model :)

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.