BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
laravel
/
octane
/
src
/
Tables
📤 Upload
📝 New File
📁 New Folder
Close
Editing: SwooleTable.php
<?php namespace Laravel\Octane\Tables; use Swoole\Table; class SwooleTable extends Table { use Concerns\EnsuresColumnSizes; /** * The table columns. * * @var array */ protected $columns; /** * Set the data type and size of the columns. */ public function column(string $name, int $type, int $size = 0): bool { $this->columns[$name] = [$type, $size]; return parent::column($name, $type, $size); } /** * Update a row of the table. */ public function set(string $key, array $values): bool { collect($values) ->each($this->ensureColumnsSize()); return parent::set($key, $values); } }
Save
Cancel