Cannot use SleepingOwl\Admin\Columns\Column\String as String because 'String' is a special class name




572
Cannot use SleepingOwl\Admin\Columns\Column\String as String because 'String' is a special class name
Рейтинг 8 из 10. Голосов: 1
Ваша оценка:

отредактировать - vendor/sleeping-owl/admin/src/SleepingOwl/Admin/Columns/Column.php

 

- * @method static \SleepingOwl\Admin\Columns\Column\String string($name)
+ * @method static \SleepingOwl\Admin\Columns\Column\Text string($name)

 

vendor/sleeping-owl/admin/src/SleepingOwl/Admin/Columns/Column/String.php (нужно удалить)

 

создать vendor/sleeping-owl/admin/src/SleepingOwl/Admin/Columns/Column/Text.php (был добавлен)

 

<?php

namespace SleepingOwl\Admin\Columns\Column;
use AdminTemplate;
use Illuminate\View\View;
class Text extends NamedColumn
{
/**
* @return View
*/
public function render()
{
$params = [
'value' => $this->getValue($this->instance, $this->name()),
'append' => $this->append(),
];
return view(AdminTemplate::view('column.string'), $params);
}
}

 

vendor/sleeping-owl/admin/src/SleepingOwl/Admin/Display/DisplayDatatablesAsync.php

 

-use SleepingOwl\Admin\Columns\Column\String;
+use SleepingOwl\Admin\Columns\Column\Text;

 

 

vendor/sleeping-owl/admin/src/SleepingOwl/Admin/Providers/ColumnServiceProvider.php

 


- Column::register('string', 'SleepingOwl\Admin\Columns\Column\String');
+ Column::register('string', 'SleepingOwl\Admin\Columns\Column\Text');

 

 


Вопросы и ответы