File: /home/armgroup/libs/app/Http/Controllers/Frontend/AuthorController.php
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use App\Models\Author;
use Artesaos\SEOTools\Facades\SEOTools;
class AuthorController extends Controller
{
public function index()
{
SEOTools::setTitle(settings('authors-title'));
SEOTools::setDescription(settings('authors-description'));
$authors = Author::query()
->select('name', 'slug')
->paginate($this->pageLimit);
return view('frontend.authors.index', compact('authors'));
}
}