src/User.php
public static function create(array $attributes = [])
    {
        $user = new static($attributes);

        $user->setPassword($attributes['password']);

        $user->save();

        return $user;
    }
public static function create(array $attributes = [])
    {
        $user = new static($attributes);

        $user->setPassword($attributes['password']);

        $user->save();

        return $user;
    }
public static function create ( array $ attributes = [ ] ) { $ user = new static ( $ attributes ) ; $ user -> setPassword ( $ attributes [ 'password' ] ) ; $ user -> save ( ) ; return $ user ; }
Static constructor for User

@param array $attributes
@return static
Static constructor for User