orchidsoftware / orchidsoftware/platform
Usage of facade aliases causes exceptions when aliases are forbidden in project.
Open
@tabuna is already working on this.
Since Oct 13, 2023.
Pending
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 662
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Describe the bug
In blade templates you use aliases of facades like {{ Auth::check() }} that cause exceptions like Class "Auth" not found when project discourages usage of aliases.
To Reproduce
Steps to reproduce the behavior:
- In
config/app.phpremove everything fromaliases:'aliases' => [] - Open
/admin - Get exception
Class "Auth" not found
Expected behavior
No exception.
Additional context
In most cases aliases can be replaced by app(class) or fully qualified name of the facade. This way platform will be more independent from the project's configs and restrictions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.