mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 15:36:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			312 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			312 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Filament\Components\Tables\Columns;
 | 
						|
 | 
						|
use Filament\Tables\Columns\TextColumn;
 | 
						|
 | 
						|
class BytesColumn extends TextColumn
 | 
						|
{
 | 
						|
    protected function setUp(): void
 | 
						|
    {
 | 
						|
        parent::setUp();
 | 
						|
 | 
						|
        $this->formatStateUsing(fn ($state) => $state ? convert_bytes_to_readable($state) : '');
 | 
						|
    }
 | 
						|
}
 |