PhpUnit / Pest / Laravel Testing Cheat Sheet
Automated testing is almost like and art more than a science. It’s a whole topic on it’s own. You can be a great programmer but
Automated testing is almost like and art more than a science. It’s a whole topic on it’s own. You can be a great programmer but
Background Next.js is a popular React framework for building server-rendered, static and dynamic web applications. Laravel Forge is an awesome server deployment tool mostly used
In the good old days website development was pretty straightforward – you posted to a new page and showed a confirmation message. Or maybe you
Routing to a specific controller method in Laravel is fun but only if you know the syntax. Here it is: Route::get(‘/user’, [UserController::class, ‘index’]); Reference https://laravel.com/docs/8.x/routing#basic-routing
Background PHP exceptions are strange things. In many cases you can’t just catch the generic exception class and you have to be very specific. This
Background Laravel has this concept of a Resource Controller, aka an Eloquent API Resource. This API translation layer sites between your eloquent resources and an
Background When using Laravel Nova, you might want to populate a date field with a date in the future, for example, if you have tasks,
Here is a snippet that allows you to do basic auth: $client = new Client(); $response = $client->request( ‘POST’, /*instead of POST, you can use
If you have a vanilla NGINX setup, and all pages except the home page of your website is returning a 404, it might be that
Introduction This article describes a quick steps and a longer explanation of how to get a Laravel application working with Virtualmin and NGINX. Of course most