PHP code example of tantee / laravel-model-api
1. Go to this page and download the library: Download tantee/laravel-model-api 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/ */
tantee / laravel-model-api example snippets
return [
'route-prefix' => 'api',
'route-middleware' => ['api'],
];
bash
php artisan vendor:publish --provider="TaNteE\LaravelModelApi\LaravelModelApiServiceProvider" --tag="laravel-model-api-migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="TaNteE\LaravelModelApi\LaravelModelApiServiceProvider" --tag="laravel-model-api-config"