Answers for "laravel route slug"

PHP
1

laravel route slug

use App\Models\Post;

Route::get('/posts/{post:slug}', function (Post $post) {
    return $post;
});
Posted by: Guest on September-18-2021

Browse Popular Code Answers by Language