PHP code example of lake / laravel-admin-lapi
1. Go to this page and download the library: Download lake/laravel-admin-lapi 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/ */
lake / laravel-admin-lapi example snippets
class Index
{
/**
* 接口方法
*
* @title 接口方法标题[必需]
* @request {"a":"c"}
* @response {"d":"e"}
* @description 接口方法描述
* @order 100
*/
public function index()
{
return json([
'code' => 0,
'msg' => 'hello lapi!',
'data' => 'lapi data',
]);
}