rxcod9 / joy-voyager-api Goto Github PK
View Code? Open in Web Editor NEWJoy VoyagerApi module adds REST Api end points to Voyager with Passport and Swagger support.
Home Page: https://joy-voyager.kodmonk.com
License: MIT License
Joy VoyagerApi module adds REST Api end points to Voyager with Passport and Swagger support.
Home Page: https://joy-voyager.kodmonk.com
License: MIT License
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
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/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
I have follow the installation instruction. But I get the error below when running the publish command:
I can't find the resources
directory in vendor/joy/voyager-api
.
My app directory:
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": "->" } ] }
can you add language params to api
like
https://joy-voyager-api.herokuapp.com/api/posts/1?lang=en
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.