This page helps you solve common problems with the Manta Laravel Flux CMS package.
Problem: Class 'Manta\FluxCMS\FluxCMSServiceProvider' not found
Solution:
composer show manta/laravel-manta-cms
composer dump-autoload
config/app.php
Problem: Table 'manta_routes' already exists
Solution:
php artisan migrate:status
php artisan migrate:rollback --step=1
php artisan migrate
Problem: Command "manta:sync-routes" is not defined
Solution:
php artisan cache:clear
php artisan config:clear
php artisan list manta
Problem: Call to undefined method Route::getRoutes()
Solution: This can happen if you’re using an older version of Laravel. Make sure you’re using Laravel 12.x.
Problem: SQLSTATE[42S02]: Base table or directory name 'manta_routes' doesn't exist
Solution: Run the migration first:
php artisan migrate
Problem: Unable to find component: [user-table]
Solution:
app/Livewire/
namespace App\Livewire; // Correct for Livewire 3
php artisan view:clear
Problem: Livewire functionality doesn’t work
Solution:
php artisan livewire:publish --assets
@livewireStyles
and @livewireScripts
are in your layout:
<head>
@livewireStyles
</head>
<body>
@livewireScripts
</body>
Problem: Component [flux:button] not found
Solution:
composer show livewire/flux
php artisan flux:install
Problem: FluxUI components have no styling
Solution:
tailwind.config.js
:
content: [
"./vendor/livewire/flux-pro/stubs/**/*.blade.php",
"./vendor/livewire/flux/stubs/**/*.blade.php",
]
npm run build
Problem: SQLSTATE[HY000] [2002] Connection refused
Solution:
.env
php artisan tinker
DB::connection()->getPdo();
Problem: Database permission errors
Solution:
Solution:
DB::enableQueryLog();
// Your code here
dd(DB::getQueryLog());
$users = User::with('roles')->get();
Problem: Fatal error: Allowed memory size exhausted
Solution:
php.ini
:
memory_limit = 512M
User::chunk(100, function ($users) {
foreach ($users as $user) {
// Process user
}
});
Problem: RouteNotFoundException: Route [login] not defined
Solution: This happens when authentication redirects are not properly configured.
php artisan manta:install --force
bootstrap/app.php
:
->withMiddleware(function (Middleware $middleware) {
$middleware->redirectGuestsTo(function ($request) {
// CMS routes redirect to staff login
if ($request->is('cms/*') || $request->is('medewerkers/*') || $request->is('bedrijven/*')) {
return route('flux-cms.staff.login');
}
// All other routes redirect to account login
return route('flux-cms.account.login');
});
})
php artisan route:clear
php artisan config:clear
Problem: RouteNotFoundException: Route [password.request] not defined
Solution: This is caused by outdated route references in authentication views.
composer update darvis/manta-laravel-flux-cms
php artisan view:clear
php artisan vendor:publish --provider="Manta\FluxCMS\FluxCMSServiceProvider" --tag="views" --force
Problem: Cannot log in to CMS, no staff users exist
Solution:
php artisan tinker
>>> Manta\FluxCMS\Models\Staff::count()
php artisan manta:create-staff --email=admin@example.com --password=secure-password
php artisan tinker
>>> Manta\FluxCMS\Models\Staff::where('active', true)->count()
Problem: Auth guard [staff] is not defined
Solution:
php artisan config:show auth.guards.staff
php artisan config:clear
php artisan config:show app.providers | grep FluxCMS
Problem: Users get logged out immediately or sessions don’t persist
Solution:
.env
:
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
rm -rf storage/framework/sessions/*
chmod -R 755 storage/framework/sessions/
Problem: Changes are not shown
Solution: Clear all caches:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
Enable debug mode in .env
for more detailed error messages:
APP_DEBUG=true
APP_LOG_LEVEL=debug
Check the log files for more information:
tail -f storage/logs/laravel.log
Debug database queries:
DB::listen(function ($query) {
Log::info($query->sql, $query->bindings);
});
If you continue to experience problems: