PHPnews.io

Overview for 'alfrednutile'

Keeping a Controller Method Simple

Written by Alfred Nutile RSS / Original link on Apr. 14, 2017

When I am done with a controller, done mocking up ideas and ready for some long term code, then I think this is the most information a Controller method should have. ~~~ public function updateFoor($id, $foo) { try { $results = $this->someRepoOrServiceClass($Id, $foo); return Response::json(['dat…



Homestead and Auto Setup Hosts File

Written by Alfred Nutile RSS / Original link on Apr. 14, 2017

I discovered this Vagrant Plugin [https://github.com/cogitatio/vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) thanks to [https://github.com/cogitatio/vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) when setting up Windows and thought why can't I us…