Laravel Tip — Always Set Table Name Explicitly

Updated: 17th October 2025
Tags: php laravel

Bootstrap 5 show/hide password

Updated: 13th October 2025
Tags: bootstrap

Managing Inconsistent Data from Multiple APIs

Updated: 13th October 2025
Tags: programming database

How to Remove a Commit That Exposes Secrets from Git History

Updated: 30th September 2025
Tags: git

Laravel notifications for comments

Updated: 21th May 2025
Tags: laravel

Laravel logging best practice

Updated: 28th April 2025
Tags: laravel

CSS grid example

Updated: 24th April 2025
Tags: css grid

I’m saving this grid in case I need it later.

.parent {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 20px;
    justify-content: center;
}

.child {
    width: 300px;
    height: 200px;
    background-color: lightskyblue;
}

Full css grid demo

Implicit fancy 404 json instead of ModelNotFoundException in laravel API

Updated: 23th April 2025
Tags: laravel

Export mysql database structure laravel command

Updated: 15th April 2025
Tags: laravel mysql

[Solved] Docker League\Flysystem\UnableToCreateDirectory Unable to create a directory at /var/www/storage/app/public/

Updated: 13th April 2025
Tags: laravel docker

[Solved] laravel 12 api routes create

Updated: 1th April 2025
Tags: laravel laravel12

[Solved] ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (10061)

Updated: 23th March 2025
Tags: mysql windows

Fix / SET autoincrement in postgresql

Updated: 4th November 2024
Tags: sql postgresql

[postgresql only] Fix users table’ autoincrement

select setval('users_id_seq', coalesce(
(select max(id)+1 from users), 1), false)

[postgresql only] Manually set next autoincrement id of users table to 100:

setval('users_id_seq', 100)

Why I don't like soft delete

Updated: 15th September 2024
Tags: laravel programming database opinion

How to add padding to your svg

Updated: 11th September 2024
Tags: svg html

Move your app from one server to other without downtime (for reading)

Updated: 8th September 2024
Tags: ubuntu laravel

How to add imagick to Docker alpine:latest without pecl

Updated: 19th July 2024
Tags: php docker

laravel eloquent create vs insert

Updated: 17th July 2024
Tags: laravel

PHP helper function for path

Updated: 17th July 2024
Tags: php

How to restart supervisor laravel

Updated: 5th July 2024
Tags: laravel ubuntu supervisor

If you changed supervisor config, or add new program to it, you need to restart it.

sudo supervisorctl stop all
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"