PHP code example of osedea / laravel-rest
1. Go to this page and download the library: Download osedea/laravel-rest 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/ */
osedea / laravel-rest example snippets
namespace Acme;
class SomeModel {
use \Osedea\LaravelRest\Traits\CommandModel;
}
return [
'app_namespace' => 'SomethingElse'
];
return [
'models_namespace' => 'SomethingElse'
];
return [
'mapping' => [
'users' => 'User',
]
];
return [
'prefix' => 'api/v2'
];