If you've read Jon Duckett's "PHP & MySQL: Server-Side Web Development" and have a good understanding of the basics of PHP, including how to work with variables, control structures (like loops and conditionals), functions, and the basics of working with MySQL databases, you might be ready to move on to Object-Oriented Programming (OOP) in PHP.
However, if you're not confident in your understanding of the basics, or if it's been a while since you've worked with PHP, it might be beneficial to revisit Jeffrey Way's "PHP for Beginners" series on Laracasts. This will help solidify your foundational knowledge and ensure you're well-prepared to tackle more advanced concepts.
Once you're comfortable with the basics, you should definitely start learning OOP in PHP. OOP is a fundamental concept that you'll need to understand before diving into Laravel, as Laravel is an MVC framework that heavily relies on OOP principles.
Here's a suggested path to follow:
-
Review the Basics (if necessary):
- Variables, data types, and operators
- Control structures (if statements, loops)
- Functions and scope
- Working with forms and handling user input
- Basic MySQL and performing CRUD operations
-
Learn PHP OOP:
- Classes and objects
- Properties and methods
- Inheritance and interfaces
- Visibility (public, private, protected)
- Namespaces and autoloading
- Composer and PSR standards
- Exception handling
-
Explore Advanced PHP Topics:
- Advanced OOP features (traits, abstract classes, etc.)
- Design patterns
- Unit testing with PHPUnit
- Working with APIs
-
Start with Laravel:
- Installation and configuration
- Routing and controllers
- Views and Blade templating
- Eloquent ORM and database migrations
- Authentication and authorization
- Middleware, requests, and responses
- Laravel's service container and service providers
- Testing in Laravel
Remember, the key to learning programming is consistent practice. Try to build small projects or components as you learn new concepts to reinforce your understanding. Laravel has excellent documentation and a supportive community, so once you're ready to start with Laravel, you'll find plenty of resources to help you along the way.
Good luck on your journey to learning Laravel!