Do Models have defualt hidden contstructers?

Posted 9 months ago by seamuswc

Editing some code.


    public static function createNewFromRequest($request) {
            $user = new User($request->all());
            return $user;

The above is called in the model and class User. There is no constructer in the file.

Does creating a new model and passing data in, trigger an invisible 'create' constructer?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.