PHPackages                             railt/laravel-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. railt/laravel-provider

ActiveLibrary[API Development](/categories/api)

railt/laravel-provider
======================

The Laravel Framework Service Provider for Railt

1.4.x-dev(6y ago)192494MITPHPPHP ^7.1.3

Since Jan 18Pushed 2y ago2 watchersCompare

[ Source](https://github.com/railt/laravel-provider)[ Packagist](https://packagist.org/packages/railt/laravel-provider)[ Docs](http://railt.org)[ RSS](/packages/railt-laravel-provider/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (3)Used By (0)

 [![Railt](https://avatars.githubusercontent.com/u/31258828?s=300)](https://railt.org)

 [![PHP 8.1+](https://camo.githubusercontent.com/3ad0b6e9d424307b2b40e675b7fbab581dc8aac267ff653a04a44f8c4546f38c/68747470733a2f2f706f7365722e707567782e6f72672f7261696c742f6c61726176656c2d70726f76696465722f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/railt/laravel-provider) [![railt.org](https://camo.githubusercontent.com/39377607a50ee86cb989611639e5ceba072723851eea7b88069ed2648647c0a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d736974652d3666346361352e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141414341414141416743414d41414142457049724741414141636c424d564555414141442f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f396557454845414141414a585253546c4d416f427a67386678553969466773766a5177626c795a6451597259523061316f543664716c6b483933546a514e43364e32303031594d774141414d354a524546554f4d764e55746b4f677a414d53337077644d4134426a765a78667a2f7637684f4945417432684d502b4d574e346b525262646f59784d66494d4a536d46737674546d4f413567564a6f4c41446b696771594238716350734e554f56517064326b6b46644134387744653872516b6b574c6a5062416649656473763254317557764b4c552b575957613339484245423252396c574b4931454670685568443551707971584c6f3444546434676e7338756a494136446333472f7843365067676a4a395a5967636e6c32424f4948704d6354474f4b3159342f58425074666263422f7a6170487333793744355064666d4245487867444e4d75524b36624965524473687461583145507353396f577676335146783957767530554141414141456c46546b5375516d4343)](https://railt.org) [![Discord](https://camo.githubusercontent.com/7e29f8f254887b3ce4ba47d02562ac0d3c9b8793ac36a26ad692a3a13b8211d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646973636f72642d636861742d3666346361352e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d646973636f7264266c6f676f436f6c6f723d666666666666)](https://discord.gg/ND7SpD4) [![Latest Stable Version](https://camo.githubusercontent.com/3888504476322f44bfb129fd903b3ba0db2b0628cb6aa628074695f83c6e346c/68747470733a2f2f706f7365722e707567782e6f72672f7261696c742f6c61726176656c2d70726f76696465722f763f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/railt/laravel-provider) [![Total Downloads](https://camo.githubusercontent.com/7e20723a30d3e75f5b08a3c39e7bce8ec6721f93d0ee0384d73bb239d0b82934/68747470733a2f2f706f7365722e707567782e6f72672f7261696c742f6c61726176656c2d70726f76696465722f762f756e737461626c653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/railt/laravel-provider) [![License MIT](https://camo.githubusercontent.com/8856a3d1beebaa813969aad3aa5f2d4abb82933656d0a3ba852c79ecc47d689d/68747470733a2f2f706f7365722e707567782e6f72672f7261696c742f6c61726176656c2d70726f76696465722f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://raw.githubusercontent.com/railt/laravel-provider/master/LICENSE.md)

 [![Testing](https://github.com/railt/laravel-provider/workflows/tests/badge.svg)](https://github.com/railt/laravel-provider/actions?workflow=Testing)

This Laravel Provider provides integration of [GraphQL](https://facebook.github.io/graphql/)using [Railt GraphQL](https://github.com/railt/railt).

Requirements
------------

[](#requirements)

- php: `^8.1`
- laravel: `^9.0|^10.0`
- railt/railt: `^2.0`

Installation
------------

[](#installation)

Library is available as composer repository and can be installed using the following command in a root of your project.

```
$ composer require railt/laravel-provider
```

Then add provider into the `config/app.php` file [to the `providers` list](https://laravel.com/docs/10.x/providers#registering-providers):

```
    'providers' => [
        // ...
        /*
         * Package Service Providers...
         */
         Railt\LaravelProvider\RailtServiceProvider::class,

         /*
          * Application Service Providers...
          */
         // ...
    ],
```

To publish an assets (config file, example files, etc), use the command:

```
$ php artisan vendor:publish --tag=railt
```

Configuration
-------------

[](#configuration)

All application configs are located in the `config/railt.php` file.

Default routes of the main application:

- `/graphql` - For the GraphQL requests.
- `/graphiql` - For the GraphQL playground (GraphQL Web IDE).

### All Configuration Options

[](#all-configuration-options)

Below is an example of a provider configuration with all possible options.

```
