murdercode/laravel-shortcode-plus

View on GitHub
src/Shortcodes/RedditShortcode.php

Summary

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

namespace Murdercode\LaravelShortcodePlus\Shortcodes;

class RedditShortcode
{
    public function register($shortcode): string
    {

        $url = $shortcode->url;

        return view('shortcode-plus::reddit', compact('url'))->render();
    }
}