PHPNews

Docker Laravel and Cron

This to this post [here](https://laracasts.com/discuss/channels/servers/run-the-scheduler-in-a-docker-image/replies/325422) for the idea. Basically running cron in Docker is easy BUT once the Host had more than one Docker client cron stopped working. No clue why but to solve this I did two things One made a …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday February 16, 2018


Pusher and Laravel Updates

Getting error "Did you forget to specify the cluster when creating the Pusher instance" Then need to set `config/broadcasting.php`: ``` 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_KEY'), 'secret' => env('PUSHER_SECRET'), 'app_id' => …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday February 14, 2018


Dusk and Production (with Dusk disabled)

``` In DatabaseServiceProvider.php line 78: Class 'Faker\Factory' not found ``` I had a ton if issues getting dusk on production, especially since production would run ``` composer install --no-dev --prefer-dist --no-interaction ``` To get around this issue I had to do a few things One, if you are stuck and can …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Thursday February 8, 2018


Dusk and Production

``` In DatabaseServiceProvider.php line 78: Class 'Faker\Factory' not found ``` I had a ton if issues getting dusk on production, especially since production would run ``` composer install --no-dev --prefer-dist --no-interaction ``` To get around this issue I had to do a few things One, if you are stuck and can …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday February 5, 2018


Laravel Asset Notes @WIP

This is just a reminder area of all the minor details as I find them that I need to remember ## FontAwesome ``` yarn add font-awesome ``` Then in my `resources/assets/sass/app.scss` ``` // Fonts @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); // Variables @import "variables"; // …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Friday January 19, 2018


Laravel Asset Notes @WIP

This is just a reminder area of all the minor details as I find them that I need to remember ## FontAwesome ``` yarn add font-awesome ``` Then in my `resources/assets/sass/app.scss` ``` // Fonts @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); // Variables @import "variables"; // …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday January 17, 2018


VueJS Transition Helper

There are docs on how to get a Transition to take effect when an item loads [https://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components](https://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) But I was not having much luck with this using [https://uiv.wxsm.spa…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday January 17, 2018


Serverless Python and Example App @WIP

There are good docs on this [http://serverless.com](http://serverless.com) platform. For Python * [https://serverless.com/framework/docs/providers/aws/examples/hello-world/python/#hello-world-python-example](https://serverless.com/framework/docs/providers/aws/examples/hello-world/python/#hello-world-python-example) …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday January 17, 2018


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