pebblecms/laravel-database-routes
RouteServiceProvider extension.routes table with columns like path, method, action, and priority. Schema migrations are provided, but customization may be needed for complex use cases (e.g., route parameters, middleware).php artisan route:cache), though dynamic routes may bypass cache unless explicitly handled.RouteServiceProvider, but complex middleware logic (e.g., auth, rate-limiting) may require custom handling.path field, or unauthorized route creation). Input sanitization and authorization checks are critical.path/action fields be sanitized to prevent injection or malformed URLs?routes/web.php or third-party packages (e.g., Nova, Backpack). Complements existing tools like:
RouteServiceProvider, Illuminate\Routing).routes table schema (extend if needed for custom fields like tenant_id, is_active).RouteServiceProvider for critical paths if the database is down.failed event to log dynamic route resolution failures.spatie/laravel-permission or laravel-nova may need adjustments if they register routes statically.RouteServiceProvider.php artisan vendor:publish --tag=laravel-database-routes-migrations).priority, tenant_id) if needed.php artisan vendor:publish --tag=laravel-database-routes-config).public function boot()
{
parent::boot();
$this->routes(function () {
Route::dynamic(); // Loads from database
});
}
php artisan route:cache).routes table may require migrations over time.routes table schema and usage guidelines.Log::debug('Dynamic route resolved:', ['path' => $path, 'action' => $action])).How can I help you explore Laravel packages today?