feat: Initialize core application structure including authentication, role-based dashboards, service task management, and integration workflows.

This commit is contained in:
jeremy bayse
2026-02-16 09:30:23 +01:00
commit af060a8847
208 changed files with 26822 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Http\Controllers;
use App\Models\Comment;
use Illuminate\Http\Request;
class CommentController extends Controller
{
public function store(Request $request)
{
$validated = $request->validate([
'content' => 'required|string|max:1000',
'commentable_id' => 'required|integer',
'commentable_type' => 'required|string',
]);
$comment = Comment::create([
'user_id' => auth()->id(),
'content' => $validated['content'],
'commentable_id' => $validated['commentable_id'],
'commentable_type' => $validated['commentable_type'],
]);
return back()->with('success', 'Commentaire ajouté.');
}
}