1. Go to this page and download the library: Download radwanic/resource-listing library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
radwanic / resource-listing example snippets
protected function cards()
{
return [
...
(new ResourceListing())->resource(\App\Post::class)
];
}
(new ResourceListing())
->cardTitle('Recently Updated Posts')
->resource(\App\TOYIT\Posts\Post::class)
->resourceUrl('/resources/posts/')
->orderBy('updated_at')
->limit(5)
(new ResourceListing())
->cardTitle('Recently Updated Posts')
->resource(\App\TOYIT\Posts\Post::class)
->resourceUrl('/resources/posts/')
->resourceTitleColumn('name')
->orderBy('price')
->limit(5)
new ResourceListing())
->cardTitle('Oldest Members')
->resource(\App\TOYIT\Users\User::class)
->resourceTitleColumn('name')
->resourceUrl('/resources/users/')
->readableDate(true)
->orderBy('created_at')
->order('asc'),
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.