Thouhedul Islam

I speak PHP, Laravel, MySql, JavaScript, VueJS, Python, Bengali and English. I am originated from Bangladesh, currently working in Malaysia.

How to upload laravel in cPanel

Often you might be able to face this problem. Today, I am showing you how to upload laravel in cPanel. Of course, there are few ways to upload laravel project in cpanel. However, this post shows you by modifying .htaccess file. Upload your entire files and folder to your cPanel. After successfully uploading, if you…

Read more...

Mastering on Github

If you use Git each and every single day, this post might be helpful for you. I write this post for my personal preference as well. Push commit to another Branch If you are on a development team where there is more than 1 developer, you might need your personal branch to update your work….

Read more...

How to set Crontab job in Macbook

I will show you the simplest way that how to set crontab job in Macbook. Let’s see here. How to use? Go to terminal, and write following line, then hit enter. env EDITOR=nano crontab -e Now you are able to write your cron instructions. Just add whatever you want. I am showing you one example- *…

Read more...

Laravel Carbon Display Local Dates and Time

If you use laravel and want to make it localized your date time, I think Laravel Carbon Display Local Dates and Time will help you to achieve. View the code on Gist. Now based on your requirement, you can assign any place name that you want. Ref: http://php.net/manual/en/timezones.asia.php    

Read more...

Laravel Prevent Disposable Emails

If you are looking for Laravel Prevent Disposable Emails, I think this post can be helpful. I discovered one of the packages for that called EmailChecker. How to Install Install Via Composer: composer require mattketmo/email-checker   How to Use Use as providers and aliases inconfig/app.php – providers EmailChecker\Laravel\EmailCheckerServiceProvider::class aliases ‘EmailChecker’ => EmailChecker\Laravel\EmailCheckerFacade::class   Access Via Facade: View the code on Gist….

Read more...

Lumen vs Laravel performance in 2018

If you are planning to choose the right framework for your next project, I think Lumen vs Laravel performance comparison is really helpful for you. Laurence did that comparison in Medium. For your better understanding, I have just repost this article. I ran an Apache Benchmark test against each route for Laravel (web), Laravel (api) and Lumen. I…

Read more...

Using Laravel Translation Strings in Vue.js

I found one of the interesting tutorials for Laravel Translation with VueJS. This post is just providing Jeff Madsen‘s post here for my readers. One issue you will face if you need to make a multi-lingual site is how to keep your translations organized for both your back-end framework and your javascript components. I’m going to demonstrate…

Read more...

WordPress show all posts of a category

This tips, I will show you how to get all the POSTS of a category in WordPress. Imagine that, you have a category called PHP and you want to display all the post belongs to PHP. Here is the code- View the code on Gist. Here in args category value is 1. That means you…

Read more...

Laravel groupby and orderby together

In Laravel, it’s confusing to use groupby and orderby together. Today, I will show you a little trick, so that you can easily use that. View the code on Gist.

Read more...

Laravel DOMDocument() class not found

If you are using DOMDocument class in Laravel, you might be facing this problem that Laravel DOMDocument() class not found. It’s because, in laravel 5, you must prefix the class name with the global namespace prefix ‘\’. A sample code is given below. View the code on Gist. Enjoy.  

Read more...