pretty-routes | Display your Laravel routes in the console | Command Line Interface library
kandi X-RAY | pretty-routes Summary
kandi X-RAY | pretty-routes Summary
Display your Laravel routes in the console, but make it pretty. .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Configure the package .
pretty-routes Key Features
pretty-routes Examples and Code Snippets
Community Discussions
Trending Discussions on pretty-routes
QUESTION
im using a package called https://github.com/garygreen/pretty-routes there is line in its service provider boot() method (here the code)
it is defining a get route with middlewares from its config file(link to the code) I just added 'auth:web' to its config file but it seems the 'auth:web' middleware is called as soon as code reaches the line before Laravel bootstraps its session and etc. when the auth('web')->user() is yet null
What I can not understand is that I do the same exact thing (here the code)with laravel/telescope but it works. why ??? also changing :
...ANSWER
Answered 2021-Jan-21 at 10:15You need to have the web
middleware applied to any routes you need sessions for, which is what the default authentication system is using. When you apply the auth
middleware without this it can't possibly resolve a user since there is no session to be authenticated against.
You need to apply the web
middleware and then what ever other middleware you want:
QUESTION
I'm a bit confused the difference between '~' and '^' in packagist ,
code example in composer.json file:
...ANSWER
Answered 2018-Feb-28 at 03:45The ~ operator is best explained by example: ~1.2 is equivalent to >=1.2 <2.0.0, while ~1.2.3 is equivalent to >=1.2.3 <1.3.0. As you can see it is mostly useful for projects respecting semantic versioning. A common usage would be to mark the minimum minor version you depend on, like ~1.2 (which allows anything up to, but not including, 2.0).
The ^ operator behaves very similarly but it sticks closer to semantic versioning, and will always allow non-breaking updates. For example ^1.2.3 is equivalent to >=1.2.3 <2.0.0 as none of the releases until 2.0 should break backwards compatibility. For pre-1.0 versions it also acts with safety in mind and treats ^0.3 as >=0.3.0 <0.4.0.
From: https://getcomposer.org/doc/articles/versions.md#tilde-version-range-
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pretty-routes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page