Files
laravel-manager-packagist/src/Modules/Reviews/ReviewsController.php
T
2026-12-06 12:46:53 +00:00

15 lines
316 B
PHP

<?php
namespace IriksIT\Manager\Modules\Reviews;
use IriksIT\Manager\Models\Review;
class ReviewsController
{
/** First opzet: lists the records as JSON. The screens come with the frontend. */
public function index()
{
return response()->json(Review::query()->latest()->paginate(25));
}
}