【文件属性】:
文件名称:apiLaravelPlatzi:Laravel课程简介,创建一个API
文件大小:85KB
文件格式:ZIP
更新时间:2021-04-07 07:52:13
PHP
蜜蜂
composer create-project --prefer-dist laravel/laravel api-new "6.*"
功能文件夹测试创建
php artisan m:test PageTest
单元文件夹测试创建
php artisan m:test PageTest --unit
运行测试
php vendor\bin\phpunit
时分双工
失败
有用
重构
创建测试
php artisan m:test Http\Controllers\Api\PostControllerTest
工厂模型的创建和迁移
php artisan m:model Post -fm
工厂模型的创建和迁移
php artisan m:con Api\PostController --api --model=Post
创建bd进行测试
创建了database\database.
【文件预览】:
apiLaravelPlatzi-master
----.gitignore(163B)
----routes()
--------api.php(583B)
--------console.php(553B)
--------channels.php(508B)
--------web.php(453B)
----README.md(896B)
----bootstrap()
--------cache()
--------app.php(2KB)
----resources()
--------views()
--------sass()
--------js()
--------lang()
----artisan(2KB)
----.styleci.yml(174B)
----public()
--------robots.txt(24B)
--------index.php(2KB)
--------web.config(1KB)
--------.htaccess(593B)
--------favicon.ico(0B)
----tests()
--------Feature()
--------CreatesApplication.php(380B)
--------TestCase.php(163B)
----phpunit.xml(1KB)
----database()
--------.gitignore(26B)
--------migrations()
--------factories()
--------seeds()
----composer.lock(235KB)
----composer.json(1KB)
----app()
--------Http()
--------Post.php(144B)
--------Exceptions()
--------User.php(734B)
--------Providers()
--------Console()
----.gitattributes(111B)
----package.json(1004B)
----config()
--------cache.php(3KB)
--------filesystems.php(2KB)
--------session.php(7KB)
--------database.php(5KB)
--------view.php(1KB)
--------logging.php(3KB)
--------hashing.php(2KB)
--------broadcasting.php(2KB)
--------queue.php(3KB)
--------app.php(9KB)
--------services.php(950B)
--------mail.php(5KB)
--------auth.php(4KB)
----webpack.mix.js(538B)
----storage()
--------app()
--------framework()
--------logs()
----.editorconfig(220B)
----server.php(563B)
----.env.example(778B)