Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
azzarip authored and github-actions[bot] committed Jan 3, 2024
1 parent 470a056 commit 3655e5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
Route::get('/{blog}/{slug}', function (string $blog, string $slug) {
$model = config('notacms.'.$blog);
$post = call_user_func([$model, 'findSlug'], $slug);
if(is_null($post)){
if (is_null($post)) {
return redirect($blog);
}

return view('notacms::'.$blog.'.show', compact('post'));
})->whereIn('blog', array_keys(config('notacms')));

0 comments on commit 3655e5a

Please sign in to comment.