Finish SEO

This commit is contained in:
dev 2021-08-06 14:01:16 -07:00
parent d5a3175bea
commit 58fb2d2834
9 changed files with 159 additions and 12 deletions

View file

@ -4,11 +4,13 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Meme;
use Artesaos\SEOTools\Facades\SEOTools;
class ApiController extends Controller
{
public function documentation()
{
SEOTools::setTitle('API');
$data = [
'memes_example' => json_encode(Meme::limit(1)->get(), JSON_PRETTY_PRINT),
'memes_endpoint' => url('api/memes'),