PHP code example of d-scribe / laraquick
1. Go to this page and download the library: Download d-scribe/laraquick 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/ */
d-scribe / laraquick example snippets
use App\Book;
use Laraquick\Controllers\Traits\Api;
class BookController extends Controller {
use Api;
protected function model() {
return Book::class;
}
protected function validationRules(array $data, $id = null) {
return [
'title' => '
Route::apiResource('books', 'BookController');