Laravel安装

163次阅读
没有评论

https://windows.php.net/download#php-8.2

https://laravel.p2hp.com/oneclick

https://composer.p2hp.com/download/

下载 并运行 Composer-Setup.exe

修改:laravel10.28.0\routes\api.php

Route::get(‘/test1’, function (Request $request) {
return ‘test’;
});

访问:http://127.0.0.1:8000/api/test1

正文完
 
评论(没有评论)