Laravel
Languages
Links
Articles
Something nice about the Laravel Framework
- PHP Lambo Meme
- Some controversial choices e.g.
- the global DI Container, which enables prose-like code, considered to be elegant by many
- many strings e.g. in validation (Rules
'required|string|max:255'
), or access control
Facades
TODO: Maybe we should simply link to the official docs.
You might see something like this in Laravel code samples:
Specifically I am referring to the Cache::get
part.
In Laravel, this is called a facade, which lets you access functionality in a comfortable way.
If you would step through the debugger, what happens here is roughly something like this: