In this video I discuss using the Laravel source code as a valuable educational resource.
In this video I discuss the basics of embedding your application logic into Laravel's routes. We revisit the topics from the the application logic in controllers screencast and approach them a bit differently.
In this video I discuss where to put your application logic when using Laravel Controllers. I discuss registering controllers with the router, creating a route with a wildcard to send parameters to a controller action, and restful controllers.
An application will usually be deployed to many environments over its lifetime. From the team's own development environments to a staging environment to the production environment configurations will likely need to be changed.
Laravel provides a simply way to enable different configurations on a per-environment basis.
In this video I walk through the Laravel folder structure and share some of my thoughts about Laravel.
Testing Laravel's core is a critical part of making and submitting changes to the codebase. Without testing it's incredibly difficult to know if your changes break something. It's possible that your seemingly perfect modification could cause an error in something obscure that few people would ever use. It's important to test for an increased level of confidence.
A few preparations must be made when unit testing Laravel's core in Windows. In the video I walk through updating PEAR, PHPUnit, enabling the fileinfo PHP extension, and pulling down the framework / core tests.
Clone the Laravel framework.
git clone https://github.com/laravel/laravel.git
Clone the laravel-tests bundle into the bundles folder.
cd laravel/bundles
git clone https://github.com/laravel/tests.git laravel-tests
Change directories to your PHP installation folder.
cd xampp177/php
Upgrade PEAR.
pear upgrade pear
Upgrade PHPUnit.
pear upgrade phpunit/PHPUnit
Laravel's File class uses the fileinfo extension. This is generally not enabled by default in Windows packages.
In your php.ini file find the following line.
;extension=php_fileinfo.dll
Uncomment the extension by removing the semi-colon.
extension=php_fileinfo.dll
Then restart your apache.
Change directories into the folder that you cloned Laravel into.
cd laravel
Then, run the tests against the core.
php artisan test:core