src/Models/Base.php
/**
     * A method best used to register Eloquent events when the model boots up
     * @return void
     */
A method best used to register Eloquent events when the model boots up
@return void
A method best used to register Eloquent events when the model boots up @return void
protected static function boot()
    {
        parent::boot();
        self::traitboot();
        self::saving(function($model){
            if(!$model->validate($model)){
                return false;
            }
        });
    }
protected static function boot ( ) { parent :: boot ( ) ; self :: traitboot ( ) ; self :: saving ( function ( $ model ) { if ( ! $ model -> validate ( $ model ) ) { return false ; } } ) ; }
A method best used to register Eloquent events when the model boots up
 @return void
A method best used to register Eloquent events when the model boots up @return void
// PulkitJalan\Cacheable\Cacheable