Giter Club home page Giter Club logo

joy-voyager-api's Introduction

Joy VoyagerApi

This Laravel/Voyager module adds REST Api with Passport and Swagger support to Voyager.

By ๐Ÿผ Ramakant Gangwar.

Screenshot

Latest Version GitHub Workflow Status Total Downloads


Prerequisites


Installation

# 1. Require this Package in your fresh Laravel/Voyager project
composer require joy/voyager-api

# 2. Publish
php artisan vendor:publish --provider="Joy\VoyagerApi\VoyagerApiServiceProvider" --force

# 3. Generate Swagger Docs Json
php artisan joy-voyager-api:l5-swagger:generate

Working Example

You can try laravel demo here https://joy-voyager.kodmonk.com/api/documentation.

Documentation

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the joy voyager-api? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Testing

You can run the tests with:

vendor/bin/phpunit

Upgrading

Please see UPGRADING for details.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

joy-voyager-api's People

Contributors

krishhna13 avatar renovate-bot avatar renovate[bot] avatar rxcod9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

joy-voyager-api's Issues

auth guard [api] is not defined

spesification

  • php 8.0.8
  • laravel 8.7.5

step to reproduce

you can clone this repo lamualfa/joy-voyager-api-issue or follow the steps below from the scratch:

create laravel template

composer create-project laravel/laravel joy-voyager-api-issue

navigate to project folder

cd joy-voyager-api-issue

install vendor

composer install

generate laravel key

php artisan key:generate

install voyager

composer require joy/voyager-api

install voyager dummy data

php artisan voyager:install --with-dummy

install joy-voyager-api

composer require joy/voyager-api

publish provider

php artisan vendor:publish --provider="Joy\VoyagerApi\VoyagerApiServiceProvider" --force

generate api documentation

php artisan joy-voyager-api:l5-swagger:generate

run the laravel server

php artisan serve

access the api

http://localhost:8000/api/menus

and you'll get the error below:

image

Call to undefined function Joy\\VoyagerApi\\Services\\safeCarbonParse()

Step to reproduce:
GET /api/posts index

{ "message": "Call to undefined function Joy\\VoyagerApi\\Services\\safeCarbonParse()", "exception": "Error", "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\joy\\voyager-api\\src\\Services\\Filter.php", "line": 349, "trace": [ { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\joy\\voyager-api\\src\\Services\\Filter.php", "line": 77, "function": "filterDate", "class": "Joy\\VoyagerApi\\Services\\Filter", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\joy\\voyager-api\\src\\Http\\Traits\\IndexAction.php", "line": 315, "function": "handle", "class": "Joy\\VoyagerApi\\Services\\Filter", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\joy\\voyager-api\\src\\Http\\Traits\\IndexAction.php", "line": 96, "function": "processApiFilters", "class": "Joy\\VoyagerApi\\Http\\Controllers\\VoyagerBaseController", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php", "line": 54, "function": "index", "class": "Joy\\VoyagerApi\\Http\\Controllers\\VoyagerBaseController", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php", "line": 43, "function": "callAction", "class": "Illuminate\\Routing\\Controller", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php", "line": 260, "function": "dispatch", "class": "Illuminate\\Routing\\ControllerDispatcher", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php", "line": 205, "function": "runController", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 798, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 141, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php", "line": 50, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php", "line": 126, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php", "line": 102, "function": "handleRequest", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php", "line": 54, "function": "handleRequestUsingNamedLimiter", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php", "line": 44, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Auth\\Middleware\\Authenticate", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 116, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 799, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 776, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 740, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 729, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php", "line": 190, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 141, "function": "Illuminate\\Foundation\\Http\\{closure}", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php", "line": 21, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull.php", "line": 31, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php", "line": 21, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TrimStrings.php", "line": 40, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize.php", "line": 27, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance.php", "line": 86, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\fruitcake\\laravel-cors\\src\\HandleCors.php", "line": 52, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Fruitcake\\Cors\\HandleCors", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Middleware\\TrustProxies.php", "line": 39, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 180, "function": "handle", "class": "Illuminate\\Http\\Middleware\\TrustProxies", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 116, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php", "line": 165, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php", "line": 134, "function": "sendRequestThroughRouter", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "D:\\Project\\hasbullah-mughniy\\triptasoft-laravo\\public\\index.php", "line": 52, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" } ] }

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Unsupported composer value

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • php ^7.3|^8.0|^9.0
  • cebe/php-openapi ^1.5
  • darkaonline/l5-swagger ^7.0|^8.0
  • illuminate/support ^7|^8|^9|^10
  • joy/voyager-api-auth ^1.0|^2.0|^3.0
  • joy/voyager-core ^1.0|^2.0|^3.0
  • friendsofphp/php-cs-fixer ^3.0
  • guzzlehttp/guzzle ^6.3|^7.0
  • mockery/mockery ^1.3
  • orchestra/testbench ^5.0|^6.0|^7.0|^8.0
  • phpunit/phpunit ^9.1|^10.0|^11.0
github-actions
.github/workflows/php-cs-fixer.yml
  • actions/checkout v4
  • stefanzweifel/git-auto-commit-action v5
.github/workflows/run-tests.yml
  • actions/checkout v4
  • shivammathur/setup-php v2
.github/workflows/update-changelog.yml
  • actions/checkout v4
  • stefanzweifel/changelog-updater-action v1
  • stefanzweifel/git-auto-commit-action v5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.