<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\LibraryContent;

class LibraryController extends Controller
{
    public function index()
    {
        $contents = LibraryContent::with('category')->latest()->paginate(20);
        return view('admin.library.index', compact('contents'));
    }
}
