© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
1 reply
Monte Cristo

Spatie Translatable Plugin - Language tabs not showing in form

Hello everyone

I'm having a persistent issue with the
spatie/laravel-translatable
spatie/laravel-translatable
plugin where the language tabs are not appearing in my resource form. I've followed the documentation and tried every debugging step I can think of, but with no success. I would really appreciate some help.

Here's what I've done and verified:

* Installed
spatie/laravel-translatable
spatie/laravel-translatable
.
* Installed
filament/spatie-laravel-translatable-plugin
filament/spatie-laravel-translatable-plugin
.
* The
Instructor
Instructor
model is correctly configured with the
HasTranslations
HasTranslations
trait and the
$translatable
$translatable
property for the
name
name
field.
* A migration was run to change the
name
name
column type to
TEXT
TEXT
in the database.
* The plugin is correctly registered in the
AdminPanelProvider
AdminPanelProvider
.
* I have cleared all caches multiple times using
php artisan optimize:clear
php artisan optimize:clear
.
* The test is being done on a very simple resource (
InstructorResource
InstructorResource
) to isolate the problem.

Despite all this, the language tabs do not appear on the
name
name
field.

app/Providers/Filament/AdminPanelProvider.php
app/Providers/Filament/AdminPanelProvider.php


<?php
namespace App\Providers\Filament;

use Filament\Panel;
use Filament\PanelProvider;
use Filament\SpatieLaravelTranslatablePlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            // ... other settings ...
            ->plugin(
                SpatieLaravelTranslatablePlugin::make()
                    ->defaultLocales(['ro', 'en', 'ru'])
            );
    }
}
<?php
namespace App\Providers\Filament;

use Filament\Panel;
use Filament\PanelProvider;
use Filament\SpatieLaravelTranslatablePlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            // ... other settings ...
            ->plugin(
                SpatieLaravelTranslatablePlugin::make()
                    ->defaultLocales(['ro', 'en', 'ru'])
            );
    }
}


app/Models/Instructor.php
app/Models/Instructor.php


<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;

class Instructor extends Model
{
    use HasFactory, HasTranslations;

    public array $translatable = ['name'];

    // ...
}
<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;

class Instructor extends Model
{
    use HasFactory, HasTranslations;

    public array $translatable = ['name'];

    // ...
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Spatie Translatable plugin
FilamentFFilament / ❓┊help
3y ago
Keep the selected language from "Spatie Translatable Plugin"
FilamentFFilament / ❓┊help
3y ago
Install Spatie Translatable Plugin
FilamentFFilament / ❓┊help
3y ago
Spatie translatable plugin issue or not
FilamentFFilament / ❓┊help
14mo ago