Files
laravel-manager-packagist/src/Modules/Pages/PagesController.php
T

15 lines
308 B
PHP

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