laravel-sanctum-api:使用Laravel 8和Sanctum进行身份验证的REST API

时间:2021-04-01 15:08:24
【文件属性】:
文件名称:laravel-sanctum-api:使用Laravel 8和Sanctum进行身份验证的REST API
文件大小:90KB
文件格式:ZIP
更新时间:2021-04-01 15:08:24
PHP 带有Sanctum的Laravel REST API 这是在Laravel Sanctum中使用身份验证令牌的REST API的示例 用法 将.env.example更改为.env并添加数据库信息 对于SQLite,添加 DB_CONNECTION=sqlite DB_HOST=127.0.0.1 DB_PORT=3306 在数据库目录中创建一个database.sqlite文件 # Run the webserver on port 8000 php artisan serve 路线 # Public GET /api/products GET /api/products/:id POST /api/login @body: email, password POST /api/register @body: name, email, password, password
【文件预览】:
laravel-sanctum-api-master
----bootstrap()
--------cache()
--------app.php(2KB)
----.env.example(811B)
----.gitattributes(111B)
----public()
--------web.config(1KB)
--------robots.txt(24B)
--------favicon.ico(0B)
--------index.php(2KB)
--------.htaccess(603B)
----database()
--------seeders()
--------migrations()
--------.gitignore(26B)
--------factories()
----artisan(2KB)
----webpack.mix.js(559B)
----config()
--------services.php(950B)
--------view.php(1KB)
--------database.php(5KB)
--------hashing.php(2KB)
--------queue.php(3KB)
--------logging.php(3KB)
--------cors.php(846B)
--------filesystems.php(2KB)
--------broadcasting.php(2KB)
--------session.php(7KB)
--------app.php(9KB)
--------auth.php(4KB)
--------cache.php(3KB)
--------sanctum.php(2KB)
--------mail.php(3KB)
----composer.lock(265KB)
----phpunit.xml(1KB)
----README.md(756B)
----resources()
--------views()
--------js()
--------css()
--------lang()
----.styleci.yml(181B)
----.editorconfig(220B)
----tests()
--------TestCase.php(163B)
--------Unit()
--------Feature()
--------CreatesApplication.php(380B)
----.gitignore(217B)
----storage()
--------logs()
--------app()
--------framework()
----app()
--------Http()
--------Providers()
--------Models()
--------Exceptions()
--------Console()
----server.php(563B)
----routes()
--------console.php(592B)
--------channels.php(558B)
--------api.php(1KB)
--------web.php(492B)
----package.json(473B)
----composer.json(2KB)

网友评论