Blog

Sample post: adding a code block

How code blocks look in a post, with highlighting for any language.

This is sample content for the block demo. Swap it for your own text in the editor. Code blocks highlight dozens of languages and include a copy button.

routes/web.php
<?php

use App\Http\Controllers\PostController;

Route::get('/blog/{post:slug}', [PostController::class, 'show'])
    ->name('posts.show');

And a shell command:

Bash
composer install
php artisan migrate --force