Open in app

Sign In

Write

Sign In

smknstd
smknstd

43 Followers

Home

About

Dec 29, 2022

Explore and polish your Laravel Emails with Mailbook

When developing a web application that sends email, you generally don’t want to actually send emails to live email addresses. Fortunately with Laravel it is easy to setup on your local environment a way to send email messages to a “dummy” mailbox. …

Local Development

3 min read

Explore and polish your Laravel Emails with Mailbook
Explore and polish your Laravel Emails with Mailbook
Local Development

3 min read


Published in code16

·Mar 17, 2022

Validating critical email address in Laravel

When you send critical messages to customers, you need to store a reachable email address. If a customer did pay for something you need to send him later like a gift card, you’ll be embarrassed to get an error like this: Client error: `POST https://api.mailgun.net/v3/mywebsite.com/messages.mime` resulted in a `400 Bad…

Laravel

2 min read

Validating critical email address in Laravel
Validating critical email address in Laravel
Laravel

2 min read


Published in code16

·Jan 12, 2022

How to use the new PHP Enum in Laravel

PHP 8.1 introduced long awaited support for built-in Enums. There is no more need for custom solutions in your Laravel projects since Laravel with its 8.69 release has your back. We’ll take a really simple example of a blogpost model with a publication state that can be draft or published…

Enum

3 min read

How to use the new PHP enum in Laravel
How to use the new PHP enum in Laravel
Enum

3 min read


Published in code16

·Jan 3, 2022

Automatically delete read database notifications in Laravel

When using Laravel, if you need to notify your users you can benefit from its built-in notification system. Laravel provides support for sending notifications across a variety of delivery channels, including email and SMS. It is a less-known feature but you can also store the notification information in a database…

Laravel

3 min read

Automatically delete read database notifications in Laravel
Automatically delete read database notifications in Laravel
Laravel

3 min read


Nov 11, 2021

How to get notified when Laravel Horizon stops running

If you need to manage queues in Laravel you probably use Horizon. Setting it up is pretty straightforward and once installed with a daemon you generally don’t have to care too much. …

Laravel

3 min read

How to get notified when Laravel Horizon stops running
How to get notified when Laravel Horizon stops running
Laravel

3 min read


Published in code16

·Nov 8, 2021

How to test Laravel Horizon notification setup with slack

In Laravel Horizon you can setup a notification system for being alerted when there is a too long wait time on your queues (and check if your queues need more workers). Once everything is setup, you’d generally like to test if everything is wired correctly. …

Laravel

2 min read

How to test Laravel Horizon notification setup with slack
How to test Laravel Horizon notification setup with slack
Laravel

2 min read


Sep 10, 2021

Fake beautiful images in Laravel

If you seed your local database with model factories, you probably use the fresh faker library (as the original faker library has been deprecated). And if you need some random images to populate you pages, the faker library has your back. <?php namespace Database\Factories; use App\Models\Media; use Illuminate\Database\Eloquent\Factories\Factory; class MediaFactory extends Factory {…

Laravel

3 min read

Fake beautiful images in Laravel
Fake beautiful images in Laravel
Laravel

3 min read


Published in code16

·May 1, 2021

On-demand optimized images with Laravel and AWS

Most of modern websites have image-rich designs but handle images inefficiently. Here are some of the common mistakes when serving hosted images on an average Laravel app: unnecessarily large pixels size (especially on mobile) unnecessary high quality not optimized formats and retention of metadata bad cache policy (often as nginx’s…

AWS

4 min read

Cheap on-demand optimized images with Laravel and AWS
Cheap on-demand optimized images with Laravel and AWS
AWS

4 min read


Dec 23, 2020

How http cache on static assets works out of the box

When someone visit your website on a page with plenty of images, fetching all the resources over the network can be expensive, especially if you do not serve resized images or network is slow. …

Cache Control

4 min read

How http cache on static assets works out of the box
How http cache on static assets works out of the box
Cache Control

4 min read


Published in code16

·Apr 24, 2020

How to keep PHP updated with last patch version on Ubuntu

Every year people at packagist share some insightful stats about usage of php. Adoption of new major releases seems great, but here is an overview of repartitions through minor versions : If I read this right, I found that around 70% of all those requests were made with an outdated…

Ubuntu

5 min read

How to keep PHP updated with last patch version on Ubuntu
How to keep PHP updated with last patch version on Ubuntu
Ubuntu

5 min read

smknstd

smknstd

43 Followers

Coder at Code16 / twitter: @smknstd

Following
  • Ari Bajo

    Ari Bajo

  • Philippe Lonchampt

    Philippe Lonchampt

  • Jeanne Londiche

    Jeanne Londiche

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech