protected function bootIfNotBooted()
    {
        if (! isset(static::$booted[static::class])) {
            static::$booted[static::class] = true;

            $this->fireModelEvent('booting', false);

            static::boot();

            $this->fireModelEvent('booted', false);
        }
    }
protected function bootIfNotBooted()
    {
        if (! isset(static::$booted[static::class])) {
            static::$booted[static::class] = true;

            $this->fireModelEvent('booting', false);

            static::boot();

            $this->fireModelEvent('booted', false);
        }
    }
protected function bootIfNotBooted ( ) { if ( ! isset ( static :: $ booted [ static :: class ] ) ) { static :: $ booted [ static :: class ] = true ; $ this -> fireModelEvent ( 'booting' , false ) ; static :: boot ( ) ; $ this -> fireModelEvent ( 'booted' , false ) ; } }
Check if the model needs to be booted and if so, do it.

@return void
Check if the model needs to be booted and if so do it .