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