PHPNews

Meetings and Cross TimeZone Teams

Wrote and article [https://medium.com/@alnutile/meetings-and-cross-timezone-teams-c9b833c43bfb](https://medium.com/@alnutile/meetings-and-cross-timezone-teams-c9b833c43bfb) on trying to find the blanance of meetings and focus time. Saved here as well for when they go out of business :) ## Meetings and Cross TimeZone …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday May 8, 2017


Dusk and Homestead

Working on learning [Dusk](https://laravel.com/docs/5.4/dusk#introduction) and really excited to get going with it. But running it in homestead proved to be a bit tricky. After following the docs and running `php artisan dusk` not much happened. Sure if I ran it on my Mac and it just worked but my tests needed to do …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday May 8, 2017


Instantiate Request for Testing

When I need to make a request for a test in which the Class is expecting a `\Illuminate\Http\Request` I can do this for a file based or non file based request. ``` /** * @Then I should be able to upload an image file */ public function iShouldBeAbleToUploadAnImageFile() { $request = new …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday May 8, 2017


We Code in the Context of our Quoting

This article can be listened too [here](http://www.readorlisten.com/16) or in your favorite podcast player Whether you are working Waterfall, or Agile we still need to quote out the time it will take for new features . We still need to give the product owners, or the people with the money, a sense of timing. And it …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday May 8, 2017


Load Testing With Behat

The team I am a part of write our tests using Behat for the most part as we try to practice BDD and take advantage of how writing in Gherkin can lead our code to be more inline with the language of the business. In this case I wanted to replicate some file upload and processing that the system will be doing during a …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday May 3, 2017


Example Job Format for Queue

Sometimes I just need this info to remind myself what a job looks like in a queue and how to mock it etc. In this case I have a simple class that will be used to dispatch the job. ``` payload = $payload; } /** * Execute the job. * * @return void */ public function handle() { …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday April 24, 2017


Homestead and Auto Setup Hosts File

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 use it on my Mac? …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017


Behat Laravel Domain Testing Inside Out

![](https://dl.dropboxusercontent.com/s/055lj0hcljvpp7u/4_pane_guy_and_getting_started.png?dl=0) I will cover the use of `FormRequest`, `Mockery`, `Behat` and more in this article. The article will show how to test your Domain code, in this case I mean testing how the code will work outside of the Routing and …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017


Adding Basic Auth to Forge

make the username and password [http://www.htaccesstools.com/htpasswd-generator/](http://www.htaccesstools.com/htpasswd-generator/) ``` admin:$apr1$wLiZDI74$/D64sfIdn74kHc6F.76Qv/ ``` And save it in a file called, for example, `htpass` Now `scp -v htpass forge@your_server:~/` Go to forge and find the site and …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017


Mockery Behat and Laravel

This is a quick view of using this library [https://github.com/laracasts/Behat-Laravel-Extension](https://github.com/laracasts/Behat-Laravel-Extension) and a Mockery Trait (should be included soon but for now put the below in your `features/bootstrap` folder and run `composer dump`). The example here is a method that …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017


Amazon Machine Learning

This is mostly a note2self. Amazon Machine learning is one way to dig into things. For me it mean not getting bogged down in Python or tons of formulas for now. Basically I watched their main video [here](https://aws.amazon.com/machine-learning/getting-started/) to get a view of how things worked. Then I read …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017


Throttle Password Reset

Laravel Throttle works on failed auth attempts but how about password resets? Here is what I made my `app/Http/Controllers/Auth/PasswordController.php` look like ## 5.3 ``` middleware('guest'); } /** * Validate the request of sending reset link. * * @param \Illuminate\Http\Request …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017


Laravel 5.x Cookbook Chat Area

## Topics * [Events](#events) * [Questions](#questions) * [ComicClientInterface](#clientinterface) * [But there is no mention about layout file](#layout) --- Just wanted to make a place to centralize some comments and feedback around the book [Laravel Cookbook](https://www.packtpub.com/web-development/…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday April 14, 2017