arbuzik
arbuzik
FFilament
Created by Anwar on 12/20/2023 in #❓┊help
Icannot access the requierd interface "filamentphp"
let me know if it helped
10 replies
FFilament
Created by Anwar on 12/20/2023 in #❓┊help
Icannot access the requierd interface "filamentphp"
from here - https://github.com/filamentphp/filament/discussions/5226 try
Route::get('/login', function () {
return redirect(route('filament.admin.auth.login'));
})->name('login');
Route::get('/login', function () {
return redirect(route('filament.admin.auth.login'));
})->name('login');
Where admin is your panel id in the version 3.x.
10 replies
FFilament
Created by Anwar on 12/20/2023 in #❓┊help
Icannot access the requierd interface "filamentphp"
did u run php artisan filament:install --panels?
10 replies
FFilament
Created by HerrChris on 12/14/2023 in #❓┊help
RichEditor not showing span with style of underline
never encountered this but one thing i can say is that since i switched to tinymce - my life got better. there's a nice repo (im not affiliated in any way) which integrates this wysiwyg perfectly into filament https://github.com/mohamedsabil83/filament-forms-tinyeditor
9 replies
FFilament
Created by arbuzik on 12/13/2023 in #❓┊help
polymorphic sorting by parent
the error im getting is Missing required parameter for [Route: filament.admin.resources.sub-clusters.edit] [URI: admin/sub-clusters/{record}/edit] [Missing parameter: record].
3 replies
FFilament
Created by arbuzik on 11/30/2023 in #❓┊help
sorting by polymorphed parent's field
Simply adding a ->sortable() to the parent's field like this -
Tables\Columns\TextColumn::make('subclusterable.title')
->label('Parent')
->sortable(true, function (Builder $query, string $direction) {
$query->orderByRaw("JSON_UNQUOTE(JSON_EXTRACT(subclusterable.title, '$.en')) $direction");
});
Tables\Columns\TextColumn::make('subclusterable.title')
->label('Parent')
->sortable(true, function (Builder $query, string $direction) {
$query->orderByRaw("JSON_UNQUOTE(JSON_EXTRACT(subclusterable.title, '$.en')) $direction");
});
results in an error -
[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'subclusterable.title' in 'order clause' at /Users/app/vendor/laravel/framework/src/Illuminate/Database/Connection.php:416)
[stacktrace]
[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'subclusterable.title' in 'order clause' at /Users/app/vendor/laravel/framework/src/Illuminate/Database/Connection.php:416)
[stacktrace]
how can i achieve that please?
2 replies