Blog

I like writing about development especially topics which the main documentation did not describe

Laravel must have packages

May 27th, 2023 — I will collect in this post which Laravel packages are...

How to deploy Statamic CMS application to shared hosting with GitHub action

October 21st, 2022 — If you want to automate your deployment to shared hosting, but you don't have SSH access, you still can handle it via FTP. With GitHub action, you...

Deploy Laravel to Shared hosting and upload files to public_html

August 10th, 2022 — In my previous blog post we talked about how to change the public folder to public_html. In this post, I will show you how can you stick with the...

How to debug failed Laravel Dusk test

July 12th, 2022 — In many cases, they don't tell you how to debug correctly. How to handle a situation when something changes in the system and the test breaks or...

Laravel Dusk - how to fake camera to stream media

July 10th, 2022 — In this post, I will show you how can you simulate a fake camera by replacing it with an image or a video. Lets begin with the webdriver...

How to test Facebook login with Laravel Dusk

July 4th, 2022 — If we have authentication on our website, then the login tests are one of the most important tests. We need to validate that the users can signup...

PHP OOP

July 3rd, 2022 — How to define a class: <?php class Fruit { // Properties public $name; public $color; // Methods function setName($name) { ...

PHP 7 features

July 3rd, 2022 — PHP 7.0 Scalar type declarations <?php // Coercive mode function sumOfInts(int ...$ints) { return array_sum($ints); } var_dump(sumOfInts(2,...

How to check if the file is downloaded during Laravel Dusk test

June 21st, 2022 — There is no official solution, but we can resolve it with a trick. First, we must think about what's happening when downloading a new file. The...

Laravel Dusk "if" statement

June 6th, 2022 — In some cases, we need an if statement in our Dusk test. There is no bulletproof solution for this situation, we have to figure it out by...