Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
|# Initial setup|
|git clone -o framework -b develop https://github.com/laravel/laravel.git project-name|
|git checkout --orphan master|
|git commit -m "Initial commit"|
|# Pulling changes|
|git fetch framework|
|git merge --squash -m "Upgrade Laravel" framework/develop|
|# Fix merge conflicts if any and commit|
I was asked how I deal with validation / create and update validation rulesets. Well here is one method I have used. Don't be afraid to build on top of what the framework has already given you. In my projects I use a base class for almost anything. You never know when you want your classes to inherit some common functionality. My
BaseValidator actually has some pretty useful methods and properties in it.
<?php namespace FooProject\Internal\Validators; use FooProject\Internal\Sanitizers\BaseSanitizer;