public static function bootModelInlineImgTrait()
    {
        static::registerPostconstruct(function ($instance) {
            $instance->appendInlineImgConfig();
        });
        static::saving(function ($instance) {
            //            if ($instance->eventsDisabled)
//            {
//                return true;
//            }
            foreach ($instance->inlimgCols as $attr) {
                $instance->setAttribute($attr, $instance->processInlineImgs($instance->getAttribute($attr)));
            }
        });
    }
public static function bootModelInlineImgTrait()
    {
        static::registerPostconstruct(function ($instance) {
            $instance->appendInlineImgConfig();
        });
        static::saving(function ($instance) {
            //            if ($instance->eventsDisabled)
//            {
//                return true;
//            }
            foreach ($instance->inlimgCols as $attr) {
                $instance->setAttribute($attr, $instance->processInlineImgs($instance->getAttribute($attr)));
            }
        });
    }
public static function bootModelInlineImgTrait ( ) { static :: registerPostconstruct ( function ( $ instance ) { $ instance -> appendInlineImgConfig ( ) ; } ) ; static :: saving ( function ( $ instance ) { //            if ($instance->eventsDisabled) //            { //                return true; //            } foreach ( $ instance -> inlimgCols as $ attr ) { $ instance -> setAttribute ( $ attr , $ instance -> processInlineImgs ( $ instance -> getAttribute ( $ attr ) ) ) ; } } ) ; }
Laravel model boot.
Laravel model boot .