Logo
Explore Help
Sign In
rogarithm/knowledge_base
1
0
Fork 0
You've already forked knowledge_base
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
6e7f8566ef189bcf6e8293f19874fc6c93f30281
knowledge_base/src/app/Http/Controllers/Controller.php

9 lines
77 B
PHP
Raw Normal View History

Implement ID-based routing and folder auto-generation from titles Major features: - Switch from slug-based to ID-based routing (/documents/123) - Enable title editing with automatic slug/path regeneration - Auto-generate folder structure from title slashes (e.g., Laravel/Livewire/Components) - Persist sidebar folder open/close state using localStorage - Remove slug unique constraint (ID routing makes it unnecessary) - Implement recursive tree view with multi-level folder support Architecture changes: - DocumentService: Add generatePathAndSlug() for title-based path generation - Routes: Change from {document:slug} to {document} for ID binding - SidebarTree: Extract recursive rendering to partials/tree-item.blade.php - Database: Remove unique constraint from documents.slug column UI improvements: - Display only last path component in sidebar (Components vs Laravel/Livewire/Components) - Folder state persists across page navigation via localStorage - Title field accepts slashes for folder organization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 09:41:38 +09:00
<?php
namespace App\Http\Controllers;
abstract class Controller
{
//
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 64ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API