PHP code example of tomhart / laravel-restful-controller
1. Go to this page and download the library: Download tomhart/laravel-restful-controller 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/ */
tomhart / laravel-restful-controller example snippets
use TomHart\Restful\AbstractRestfulController;
class BlogController extends AbstractRestfulController
{
/**
* What Model class to search for entities.
* @return string
*/
protected function getModelClass(): string
{
return Blog::class;
}
}