HDTuto.com

Latest Articles


Laravel 5.7 Get Current URL with Parameters

Hi Developer, In this small post, i wanted to show you how you can get current url or base url with parameters in your controller file or blade view file of laravel 5.7 project. So laravel 5.7 provide several way to get current app path using fullUrl(), current(), url() and segment() of request object. You can easily get by request object. Laravel 5.7 provide Request and URL facade for getting re.....

Posted On September 25, 2018

Laravel 5.7 multiple file upload with validation example

In this post, i will show you step by step how to multiple file upload in laravel 5.7 application. we also learn how to add validation with multiple file uploading in laravel 5.7 app. Using this example, you will get idea to upload multiple images with laravel 5.7. We are going from starch so, we will upload multiple file and store on server then after we will store database too. so in this exa.....

Posted On September 20, 2018

PHP Laravel 5 Union query Example

Hi Guys, Are you looking for how to use union in laravel query builder? If yes then you are a right place. Here i will show you example of union query in laravel 5 project. You can simply user union mysql query by using union() of laravel eloquent. Here i write union query for two tables and get both tables data like as bellow query result: <strong>Example:</strong> <pre> $silver = DB::table("pr.....

Posted On September 18, 2018

Get date on change event of Bootstrap Datepicker

In this article, i will explain you to how to get selected date from bootstrap datepicker using on change event. When ever you are working on using bootstrap project and you require to use datepicker then we always go to implement bootstrap datepicker js. it is very simple to use and we can simply customize it like change date format, you can give start date, disable some date etc. Sometime, we.....

Posted On September 14, 2018

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