This article requires Windows 10 (Build Version 1709 [The Fall Creators Update]) or above to work.
Although WSL exists since Version 1607 [Anniversary Update], it’s harder to setup and more buggy.
In this tutorial we will setup this development environment in WSL (In Part 1)
PHP 7.2 (Run as FPM)
With those tools under Windows 10 (In Part 2)
Bash and Linux CLI tools
Continue reading “[WSL] PHP Development Environment by “Windows Subsystem for Linux” (Part 1)”
Laravel queue is quite easy to setup and use.
But how it actually work is seem like a mystery and undocumented
There are some pitfall that beginner usually fall into, the common one is stucking
Continue reading “Laravel Job: Common problem – Queue stuck, not responding to “artisan queue:restart””
Laravel is awesome, but personally I don’t appreciate their documentation as it seems always “beginner orientated”.
They trend make simple things automagically happen, without let you knowing how it works.
They you get into trouble when you need advanced functionality.
Say, you get this boilerplate when typing
php artisan make:job TestJob:
class TestJob implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
* Create a new job instance.
* @return void
public function __construct()
* Execute the job.
* @return void
public function handle()
So, what actually are
Documentation won’t tell you, even if you read the API Reference, you have little idea what they means.
Continue reading “Laravel Queue: Job Class demystified (ShouldQueue, Dispatchable, InteractsWithQueue, Queueable, SerializesModels)”