Add Post Templates feature
- Create templates table with name, body, type, title, target, placeholders - Add Template model with applyToPost method for placeholder replacement - Add Livewire Templates/Index component for CRUD operations - Add templates index view with form and table - Add /templates route - Update Posts/Index to support template selection when creating posts - Templates can be applied to pre-fill post form fields Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -4,6 +4,7 @@ use App\Livewire\Auth\Login;
|
||||
use App\Livewire\Posts\Index as PostsIndex;
|
||||
use App\Livewire\Sites\Index as SitesIndex;
|
||||
use App\Livewire\SocialAccounts\Index as SocialAccountsIndex;
|
||||
use App\Livewire\Templates\Index as TemplatesIndex;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
@@ -25,4 +26,5 @@ Route::middleware('auth')->group(function () {
|
||||
Route::get('/sites', SitesIndex::class)->name('sites.index');
|
||||
Route::get('/social-accounts', SocialAccountsIndex::class)->name('social-accounts.index');
|
||||
Route::get('/posts', PostsIndex::class)->name('posts.index');
|
||||
Route::get('/templates', TemplatesIndex::class)->name('templates.index');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user