Christoph Rumpel has a new tutorial on using the ::class keyword in PHP and Laravel.
Since PHP 5.5 the class keyword is used for class name resolution. This means it returns the fully qualified ClassName. This is extremely useful when you have namespaces, because the namespace is part of the returned name.
Christoph goes through a few examples and demonstrates how this limits errors by utilizing the IDE’s auto setting of namespaces.
Filed in: Laravel Tutorials
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- SENIOR FULL STACK SOFTWARE ENGINEER
Fort Worth, Texas
- PHP Web Developer
Christ for all Nations
- PHP Developer
Manhattan, KS (open to Remote)
- Mid-Senior Laravel Developer
- Full Stack Web Developer
Las Vegas, NV
- Staff Software Engineer (Laravel)
- Software Engineer (PHP, Laravel, Vue)
Los Angeles, CA
SQL Server coming to Linux
Today, Microsoft announced that SQL Server is coming to Linux. “This is an enormously important decision for Microsof…
Laravel Tutorial: Step by Step Guide to Building Your First Laravel Application
This Laravel tutorial will take you from the very beginning of an app idea into a real deployable Laravel application…