Skip to content
Snippets Groups Projects

Resolve "Créer pages mentions légales et conditions générales de vente"

6 files
+ 49
7
Compare changes
  • Side-by-side
  • Inline

Files

  • - Created a new LegalMentionsController to handle the display of legal mentions.
    - Added a new Blade view for legal mentions with localization support.
    - Updated the terms page to use localized titles.
    - Updated footer links to use localized text for legal mentions and terms.
    - Added French localization entries for "Mentions légales" and "Conditions générales de vente".
<?php
namespace App\Http\Controllers\Public;
use App\Http\Controllers\Controller;
use App\Models\LegalMention;
class LegalMentionsController extends Controller
{
public function __invoke()
{
$activeLegalMentionsText = LegalMention::where('active', true)->first();
if (! $activeLegalMentionsText) {
abort(404);
}
$activeLegalMentionsText = $activeLegalMentionsText->contentTransKey->getTranslation();
return view('public.legal-mentions', compact('activeLegalMentionsText'));
}
}
Loading