Using beautiful command prompts in Laravel
August 5, 2023 — Artisan commands in Laravel are truly a blessing. I mean you could create just about any files be it controllers, models, middleware, or provider by knocking a simple command from the CLI.
A blog on PHP, JavaScript, and more
August 5, 2023 — Artisan commands in Laravel are truly a blessing. I mean you could create just about any files be it controllers, models, middleware, or provider by knocking a simple command from the CLI.
August 3, 2023 — Sometimes, you may want to ensure that a collection in Laravel contains only a specific type of item. For instance, you may want to ensure that a collection contains only a string
type of item. Or, you may want to ensure that a collection contains items of a specific class.
August 1, 2023 — If you go to paint shops and show them a color that you want to buy and they don’t have the exact color, they will mix different colors to create the same color you want. This is how they create variants of colors.
July 29, 2023 — I have been working with CSS for like 10+ years now and I have worked with CSS animations for a fair amount of time. But I didn’t know that you can pause and resume animations in CSS until recently.
July 27, 2023 — If you’ve ever worked with Next.js, you might have come across its page routing system. It’s pretty straightforward. You just create a file with the name of the route you want to create and that’s it.
July 25, 2023 — Large-scale projects would often require to import data from large CSV files at some point. And if not handled properly, this can very well lead to memory issues.
July 22, 2023 — There are keyboard shortcuts that are application-specific and there are system-wide keyboard shortcuts.
July 21, 2023 — Setting up hover on elements in devices where hover is not supported (like mobiles, tablets…) can be overkill. For instance, if you have a navigation menu that has a hover effect on a desktop browser, you might want to disable that hover effect on mobile devices because there’s no hover support on mobile devices.
July 19, 2023 — Laravel Pint is a handy little package that helps you fix PHP code style in a Laravel project. On top of fixing code style, you can also set some rules and simplify repetitive tasks using this package.
July 16, 2023 — I was just wondering if life must have been super boring pre-smartphone era. Especially when you go on vacation.