<?php

namespace App\Http\Controllers;

use App\Models\Article;
use Illuminate\View\View;

class ArticleController extends Controller
{
    public function show(string $locale, string $slug): View
    {
        $article = Article::publie()->where('art_slug', $slug)->firstOrFail();

        return view('front.article', ['article' => $article]);
    }
}
