Donec at mattis erat! Duis sed massa eget eros gravida vulputate nec ut ipsum.

Laravel

Adding a new site to Laravel Homestead

If it has been a while since you set up the Laravel Homestead Vagrant you may have forgotten how to add new sites. Or maybe you have added new sites but they are not working. Below are the steps that always work for me on the Mac.

Open terminal then the Homestead.yaml file with your editor of choice.

sudo vim ~/.homestead/Homestead.yaml

Add the folders to map. If using vim as the editor you must press "i" to insert text

folders:
    - map: "/Applications/MAMP/htdocs/vagrant/temprano/cohesion-app/webservice"
      to: "/home/vagrant/cohesion-webservice"
Read more ...

Add Whoops back to Laravel 5.2

So I have started to learn a great PHP framework called Laravel. Coming from Yii 1 was a bit of a learning curve but Laravel does seem like it has more features needed for enterprise development. But Laravel is behind other frameworks such as Yii in a couple areas. At the beginning I really missed Gii. Which was a GUI for Yii that made it really simple to do Scaffolding and basic CRUD creation. Artisan does a few of these feature via command line.

The other thing I really miss about Yii is the error messages. It is very difficult to find where the error originated in Laravel because it only shows the default Symfony error page.

Whoops was in Laravel 4 and provided much more details about PHP errors, but unfortunately it was removed in Laravel 5. Good news is it can easily be added back to Laravel 5.2.

Read more ...

Latest News

Social GK5

Any data to display