Quick Tip for Devs: Laravel 12’s new AI-powered code generation in Artisan is a game-changer!
Laravel 12’s new AI-powered code generation in Artisan is a game-changer! Generate Rust-inspired safe APIs in seconds.
Laravel 12’s new AI-powered code generation in Artisan is a game-changer! Generate Rust-inspired safe APIs in seconds.
Laravel ships with many awesome and time-saving methods for developers like us.. Here we will see some “One of Many” function’s examples: Get the latest/last record from a model/relation function latestRecord() { return $this->hasOne(RelationModel::class)->latestOfMany(); } Get the oldest/first record from a model/relation function latestRecord() { return $this->hasOne(RelationModel::class)->oldestOfMany(); } Bonus!: Retrieve records with special […]
I have been working on an application named “EasySME” with Laravel & MySQL. And a client requested a new feature that he wants to clone/copy/duplicate the existing Invoice. So, I have done a few searches and R&D and found out that Laravel ships with a built-in function called replicate(). Laravel is awesome, you want it […]
Hey there.. hope you are facing the same problem as I am facing to update the DB from phpMyAdmin.. and no ssh access from Cpanel to run the migration command on the terminal. And you are in the right place.. here is the solution to get the dump query from the Laravel migration file. Command: […]
How to get Column Name from a table in Laravel and PHP
Hey! what’s up? I am working on a SAAS application for my current company and facing the issue of sending emails, actually bad emails, those comply with the RFC. So that means basic email validation is not working from the Laravel side and we are processing emails to ‘example@gmail’ like email addresses (yes RFC allow […]
Hey, So you also face the same issue! Hope you will get a solution here.. BOL! Check the current PHP version. php –version In my case, it is php7.1. Now, check the excepted version that you want to set/change in folder ls -la /usr/bin/ You will get a list of files and folders, now check […]
Run raw insert query or SQL file in Laravel seeder
Hi there, hope you are not in trouble with your application email sending feature. I am using mailtrap.io for email testing on the development server. It is good, but one problem is all email are going mailtrap’s Demo inbox, not to users individual email. And my client wants to check all email templates and functionality […]
We, developers like to write codes, but what if you need to write 1000000000 lines of code? Let me know your answer on comment 😉 Here comes snippet, What is snippet? Snippet a small piece or brief extract. it’s a brunch of code that is generate by shortcut key. Now we know create some snippets […]