murdercode/laravel-shortcode-plus

View on GitHub
src/Shortcodes/TriviaShortcode.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Murdercode\LaravelShortcodePlus\Shortcodes;

class TriviaShortcode
{
    public function register($shortcode): string
    {
        $id = $shortcode->id ?? '';

        return view('shortcode-plus::trivia', compact('id'))->render();
    }
}