HDTuto.com

Latest Articles


Calculate age from date of birth in Laravel

Hi Guys, Today, we will learn to calculate age from birthdate in laravel application. we will use carbon to calculate age in laravel. Actually, yesterday i was working on my laravel 5 application and i require to display age from date of birth in laravel project. I thought i need to use date helper function on php. but i found carbon to calculate age in laravel and we don't require to install c.....

Posted On September 11, 2018

Email Verification in laravel 5.7 Example

Are you looking to verify email address setup in laravel 5.7, then you are a right place. In this tutorial i will example how to setup email verification in laravel 5.7. Few days ago laravel introduce new version 5.7, Then provide email verification after registration in new feature of laravel 5.7. Laravel provide auth to create login, registration by default. But if you want to also add email ve.....

Posted On September 11, 2018

Laravel 5.7 get ip address

In this article, I will let you know how to get ip address from a request in laravel 5.7. Sometime we may require to get client ip address from request object in our laravel 5.7 application. If you are use core PHP and you can get from $_SERVER, but laravel framework provide very simple easy way to get client ip address from request. Here, bellow i gave you example how you can get ip address. yo.....

Posted On September 7, 2018

Laravel 5.7 Image Upload with Validation Example

Hi Guys, Today, i will show you how to create simple image upload in laravel 5.7. I write article step by step about image upload in laravel 5.7 version. I also added validation with image upload in laravel 5.7. I added image upload validation like image, mimes, max file upload etc, So you can easily understand and you it simply. In this post, we will create two routes one for get method and ano.....

Posted On September 5, 2018

How to pass PHP variables in JavaScript or jQuery?

Hi Guys, In this post, we will learn how to access php variable in jquery with small example. We always require to get php array variable or data variable in javascript. If you have simple string value store on php variable and you require to get in jquery then you can do it easily by using echo of php. But if you need to get array variable then you have to do it using json_encode. So, just se.....

Posted On August 20, 2018