Youghourta Benali wrote a nice tutorial on how to set up your local projects to contribute to Laravel or any PHP library.

laravel php projects