public static function boot_TrashSupport() {

		$table = static::table();

		if ( ! $table instanceof TrashTable ) {
			throw new \UnexpectedValueException( sprintf( "%s model's table must implement TrashTable." ), get_called_class() );
		}

		static::register_global_scope( 'trash', function ( FluentQuery $query ) use ( $table ) {
			$query->and_where( $table->get_deleted_at_column(), true, null );
		} );
	}
public static function boot_TrashSupport() {

		$table = static::table();

		if ( ! $table instanceof TrashTable ) {
			throw new \UnexpectedValueException( sprintf( "%s model's table must implement TrashTable." ), get_called_class() );
		}

		static::register_global_scope( 'trash', function ( FluentQuery $query ) use ( $table ) {
			$query->and_where( $table->get_deleted_at_column(), true, null );
		} );
	}
public static function boot_TrashSupport ( ) { $ table = static :: table ( ) ; if ( ! $ table instanceof TrashTable ) { throw new \ UnexpectedValueException ( sprintf ( "%s model's table must implement TrashTable." ) , get_called_class ( ) ) ; } static :: register_global_scope ( 'trash' , function ( FluentQuery $ query ) use ( $ table ) { $ query -> and_where ( $ table -> get_deleted_at_column ( ) , true , null ) ; } ) ; }
Initialize the TrashSupport trait.

@since 2.0
Initialize the TrashSupport trait .