src/Eloquent/Model.php
protected static function boot()
    {
        parent::boot();

        static::creating(function($model){
            self::updateGeoAttributes($model);
        });

        static::created(function($model){
            self::updateGeoAttributes($model);
        });

        static::updating(function($model){
            self::updateGeoAttributes($model);
        });

        static::updated(function($model){
            self::updateGeoAttributes($model);
        });
    }
protected static function boot()
    {
        parent::boot();

        static::creating(function($model){
            self::updateGeoAttributes($model);
        });

        static::created(function($model){
            self::updateGeoAttributes($model);
        });

        static::updating(function($model){
            self::updateGeoAttributes($model);
        });

        static::updated(function($model){
            self::updateGeoAttributes($model);
        });
    }
protected static function boot ( ) { parent :: boot ( ) ; static :: creating ( function ( $ model ) { self :: updateGeoAttributes ( $ model ) ; } ) ; static :: created ( function ( $ model ) { self :: updateGeoAttributes ( $ model ) ; } ) ; static :: updating ( function ( $ model ) { self :: updateGeoAttributes ( $ model ) ; } ) ; static :: updated ( function ( $ model ) { self :: updateGeoAttributes ( $ model ) ; } ) ; }
Overriding the "booting" method of the model.

@return void
Overriding the booting method of the model .