Error Column #1255
-
I can only use Column::make, the rest BooleanColumn or Image also say Class tag "App\Http\Livewire\BooleanColumn" not found |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
You need to add the relevant column types in within your Use statements. i.e. <?php
namespace App\Http\Livewire;
use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
use Rappasoft\LaravelLivewireTables\Views\Columns\BooleanColumn;
use Rappasoft\LaravelLivewireTables\Views\Columns\ImageColumn; |
Beta Was this translation helpful? Give feedback.
-
It worked but when I want to show the image from the database it can't because $row->id is not the data of the table. When I use the code " Column::make('profile_photo_path') |
Beta Was this translation helpful? Give feedback.
-
How wonderful. it worked thanks for all, Do you have a link to buy a coffee? |
Beta Was this translation helpful? Give feedback.
-
Well I did it for Antony and thank you very much. I'm trying to find the use "if else" to give a message at will.If you know about it can you please tell me about it. |
Beta Was this translation helpful? Give feedback.
Yep, model is a string.
You can use setAdditionalSelects in your configure() method to add extra fields in that you want to use in labels/formats.
e.g.
Then you can reference those fields in your labels/formats under the $row->fieldName approach