Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use full import for Cache Facade instead of alias #130

Closed
iamrgroot opened this issue Apr 19, 2022 · 1 comment
Closed

Use full import for Cache Facade instead of alias #130

iamrgroot opened this issue Apr 19, 2022 · 1 comment

Comments

@iamrgroot
Copy link
Contributor

Is there a specific reason to use the alias in stead of the full Facade import for the caching?

I came across a project that doesn't have the Alias in config/app.php and laravel-settings crashes because it uses the alias. My suggestion would be to use the full path:

Now:

use Cache;

Full import:

use Illuminate\Support\Facades\Cache;
@rubenvanassche
Copy link
Member

Not a reason, I would merge such a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants