Ashiqur Rahman's articles Laravel Shared Hosting Using Queues on cPanel Shared Hosting with Laravel Sometimes, shared hosting must be used that does not permit the installation of supervisor to run the queue worker. A typical example of these are servers deployed with Cpanel access only. One approach for non-time-sensitive queue work (such as sending emails) is to add a task to the scheduler that starts the queue worker every […] Written by Ashiqur Rahman February 9, 2023February 9, 2023 Saving Bookmark this article Bookmarked Uncategorized Wix Hacks Imagine you can build your own website using drag-drop elements. Nowadays, it’s pretty common thinking but if I say you can also do dynamic content pop in your drag-drop website with just simple steps. Then it’s a new thing huh!!?? So let’s start. We will take Wix as your drag-drop builder. Main Page scripts Lightbox […] Written by Ashiqur Rahman August 18, 2022August 18, 2022 Saving Bookmark this article Bookmarked AI DALL·E: Creating Images from Text DALL·E is a 12-billion parameter version of GPT-3 trained to generate images from text descriptions, using a dataset of text–image pairs. We’ve found that it has a diverse set of capabilities, including creating anthropomorphized versions of animals and objects, combining unrelated concepts in plausible ways, rendering text, and applying transformations to existing images. Recently, I got access to […] Written by Ashiqur Rahman August 12, 2022August 12, 2022 Saving Bookmark this article Bookmarked Best Practices Deployment Laravel Config RDS connection for Laravel the right way | Best practices I have faced RDS connection issues a lot. Cause AWS RDS used a different env variable rather than the Laravel default one for MySQL connection. So what is the best way to resolve the issue? Add this code on the top of your /config/database.php And change your MySQL connection to: Great! You are done! If […] Written by Ashiqur Rahman May 31, 2022July 3, 2022 Saving Bookmark this article Bookmarked git github gitlab Deploy to github and gitlab from same local project This is to say you want to be able to deploy to multiple remote repositories if that’s the case To add new repo’s run this command git remote add < shortname > < url > where: origin-new is the remote server name (it can be any valid string) [email protected]:username/repo-name.git is the url to your online repo To […] Written by Ashiqur Rahman March 8, 2022March 11, 2022 Saving Bookmark this article Bookmarked git gitlab How to set up your SSH key for GitLab on macOS One of the most common issues while getting started with Git and GitLab is setting up the private and public keys. Background The most common error you may get when trying to close a Git repository over SSH is this one: [email protected]: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository. What is SSH? […] Written by Ashiqur Rahman March 8, 2022March 11, 2022 Saving Bookmark this article Bookmarked API Back-End Laravel PHP Uncategorized Web Gmail SMTP config for cPanel First, turn on the less secure app accessVisit – https://myaccount.google.com/lesssecureapps then in .env add these credentials switch the MAIL_PORT between (465 or 587) Test your Mail config Visit here Written by Ashiqur Rahman February 16, 2022February 16, 2022 Saving Bookmark this article Bookmarked API Back-End Laravel PHP Uncategorized Web mailtrap cPanel config for Laravel switch the MAIL_PORT between (25 or 465 or 587 or 2525) Written by Ashiqur Rahman January 14, 2022February 16, 2022 Saving Bookmark this article Bookmarked Laravel How to set Timezone in Laravel Inside config/app.php replace timezone‘timezone’ => ‘Asia/Singapore’ Inside env add DB configDB_TIMEZONE=+08:00 Written by Ashiqur Rahman February 24, 2021February 24, 2021 Saving Bookmark this article Bookmarked Laravel username / alphanumeric validation in Laravel Laravel provide a rich set of pre-bult validation rules. If you need to validate alpha – numeric value you can use – alpha The field under validation must be entirely alphabetic characters. alpha_dash The field under validation may have alpha-numeric characters, as well as dashes and underscores. alpha_num The field under validation must be entirely […] Written by Ashiqur Rahman February 11, 2021February 11, 2021 Saving Bookmark this article Bookmarked github github1s One second to read GitHub code with VS Code Github1s stands for One second to read GitHub code with VS Code Today I discovered a small project on GitHub that allows you to easily read a git repository in VSCode without cloning it. Github1s allows you to read a GitHub project with an online version of VSCode. You just need to add 1s after GitHub and press Enter in […] Written by Ashiqur Rahman February 10, 2021February 10, 2021 Saving Bookmark this article Bookmarked Laravel How to make Service & Repository Class generator for Laravel Using Controller -> Service -> Repository -> Model pattern, we need to use custom service & repository class. By default Laravel included make:model & make:controller command. But to generate Service & Repository class, we need to create custom commands to generate these classes. So Let’s start. Service Class generator command 1st we need to generate […] Written by Ashiqur Rahman October 28, 2020October 28, 2020 Saving Bookmark this article Bookmarked Loading Load more
Laravel Shared Hosting Using Queues on cPanel Shared Hosting with Laravel Sometimes, shared hosting must be used that does not permit the installation of supervisor to run the queue worker. A typical example of these are servers deployed with Cpanel access only. One approach for non-time-sensitive queue work (such as sending emails) is to add a task to the scheduler that starts the queue worker every […] Written by Ashiqur Rahman February 9, 2023February 9, 2023 Saving Bookmark this article Bookmarked
Uncategorized Wix Hacks Imagine you can build your own website using drag-drop elements. Nowadays, it’s pretty common thinking but if I say you can also do dynamic content pop in your drag-drop website with just simple steps. Then it’s a new thing huh!!?? So let’s start. We will take Wix as your drag-drop builder. Main Page scripts Lightbox […] Written by Ashiqur Rahman August 18, 2022August 18, 2022 Saving Bookmark this article Bookmarked
AI DALL·E: Creating Images from Text DALL·E is a 12-billion parameter version of GPT-3 trained to generate images from text descriptions, using a dataset of text–image pairs. We’ve found that it has a diverse set of capabilities, including creating anthropomorphized versions of animals and objects, combining unrelated concepts in plausible ways, rendering text, and applying transformations to existing images. Recently, I got access to […] Written by Ashiqur Rahman August 12, 2022August 12, 2022 Saving Bookmark this article Bookmarked
Best Practices Deployment Laravel Config RDS connection for Laravel the right way | Best practices I have faced RDS connection issues a lot. Cause AWS RDS used a different env variable rather than the Laravel default one for MySQL connection. So what is the best way to resolve the issue? Add this code on the top of your /config/database.php And change your MySQL connection to: Great! You are done! If […] Written by Ashiqur Rahman May 31, 2022July 3, 2022 Saving Bookmark this article Bookmarked
git github gitlab Deploy to github and gitlab from same local project This is to say you want to be able to deploy to multiple remote repositories if that’s the case To add new repo’s run this command git remote add < shortname > < url > where: origin-new is the remote server name (it can be any valid string) [email protected]:username/repo-name.git is the url to your online repo To […] Written by Ashiqur Rahman March 8, 2022March 11, 2022 Saving Bookmark this article Bookmarked
git gitlab How to set up your SSH key for GitLab on macOS One of the most common issues while getting started with Git and GitLab is setting up the private and public keys. Background The most common error you may get when trying to close a Git repository over SSH is this one: [email protected]: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository. What is SSH? […] Written by Ashiqur Rahman March 8, 2022March 11, 2022 Saving Bookmark this article Bookmarked
API Back-End Laravel PHP Uncategorized Web Gmail SMTP config for cPanel First, turn on the less secure app accessVisit – https://myaccount.google.com/lesssecureapps then in .env add these credentials switch the MAIL_PORT between (465 or 587) Test your Mail config Visit here Written by Ashiqur Rahman February 16, 2022February 16, 2022 Saving Bookmark this article Bookmarked
API Back-End Laravel PHP Uncategorized Web mailtrap cPanel config for Laravel switch the MAIL_PORT between (25 or 465 or 587 or 2525) Written by Ashiqur Rahman January 14, 2022February 16, 2022 Saving Bookmark this article Bookmarked
Laravel How to set Timezone in Laravel Inside config/app.php replace timezone‘timezone’ => ‘Asia/Singapore’ Inside env add DB configDB_TIMEZONE=+08:00 Written by Ashiqur Rahman February 24, 2021February 24, 2021 Saving Bookmark this article Bookmarked
Laravel username / alphanumeric validation in Laravel Laravel provide a rich set of pre-bult validation rules. If you need to validate alpha – numeric value you can use – alpha The field under validation must be entirely alphabetic characters. alpha_dash The field under validation may have alpha-numeric characters, as well as dashes and underscores. alpha_num The field under validation must be entirely […] Written by Ashiqur Rahman February 11, 2021February 11, 2021 Saving Bookmark this article Bookmarked
github github1s One second to read GitHub code with VS Code Github1s stands for One second to read GitHub code with VS Code Today I discovered a small project on GitHub that allows you to easily read a git repository in VSCode without cloning it. Github1s allows you to read a GitHub project with an online version of VSCode. You just need to add 1s after GitHub and press Enter in […] Written by Ashiqur Rahman February 10, 2021February 10, 2021 Saving Bookmark this article Bookmarked
Laravel How to make Service & Repository Class generator for Laravel Using Controller -> Service -> Repository -> Model pattern, we need to use custom service & repository class. By default Laravel included make:model & make:controller command. But to generate Service & Repository class, we need to create custom commands to generate these classes. So Let’s start. Service Class generator command 1st we need to generate […] Written by Ashiqur Rahman October 28, 2020October 28, 2020 Saving Bookmark this article Bookmarked