HDTuto.com

Latest Articles


How to get last inserted id in Laravel 5.7?

we can get last insert id in three way to into laravel 5.7 application. laravel provide three model function to get current saved record id as save(), create() and insertGetId(). If you have experience with PHP Project developing then you know we almost require to get last id. so if you need to get last insert id then you can get save(), create() and insertGetId() method in laravel 5.7 project. h.....

Posted On September 25, 2018

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