在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ardani/laravel-graphql开源软件地址(OpenSource Url):https://github.com/ardani/laravel-graphql开源编程语言(OpenSource Language):PHP 83.4%开源软件介绍(OpenSource Introduction):Sample Integrate Laravel With GraphQLGraphQL is a query language for your API, and a server-side runtime for executing queries by using a type system you define for your data this is sample how to integrating Graphql with laravel, for full documentation you can check here and Graphql InstallationDependencies:Setup Composer.json:1- Require the package via Composer in your {
"require": {
"barryvdh/laravel-cors": "^0.9.2",
"rebing/graphql-laravel": "dev-master",
"tymon/jwt-auth": "^0.5.11",
"noh4ck/graphiql": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ardani/laravel-graphiql"
}
]
} 2- Run Composer to install or update the new requirement. $ composer install 3- Create file 4- Run artisan migrate and seeder $ php artisan migrate
$ php artisan db:seed 5- Run application $ php artisan serve GraphQL : http://127.0.0.1:8000/graphql/query GraphQL Ui : http://127.0.0.1:8000/graphql-ui |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论