HDTuto.com

PHP


Laravel 5.5 - change date format using jenssegers/date package

Hi Friends, In this article i will let you know how to change date format using jenssegers/date composer package in Laravel 5.5. jenssegers/date package provide us Date facade. Date facade through we can simply change date formate, calculate difference between two dates its. jenssegers/date package provide amazing feature is multi-language support. If you want to display your date in specific lan.....

Posted On November 8, 2017

Laravel 5.5 Get Route Name in Controller, View and Middleware

Hi, Guys Today is crazy day, I want to let you know how to get route name in controller or view or middleware etc in your laravel 5.5 application. Sometime, we need to get route name for as per give on url. We can easily get route name two way using following facade: <strong>1) Request:</strong> <strong>2) Route:</strong> If you are getting route name in controller then "Request" facade will hel.....

Posted On November 7, 2017

Laravel 5.5 - Force Download File using response helper

We may sometime require to download zip or pdf file for report or invoice in Laravel 5 application. So in this article i will let you know how to force download file using response "download()" method. As we know, we have to make response from controller for download file. So you have to simple return response with download(). download() take three argument as listed bellow syntax: <strong>Synta.....

Posted On November 6, 2017

Laravel 5.5 - multiple images uploading using dropzone js

If you are planing to implement drag and drop multiple images upload using ajax in your laravel 5.5 application then you a right place. Here i will let you know how to upload multiple images upload using ajax. If you think drag and drop images upload with ajax and it is easy then you are wrong. It is not easy to make drag and drop image upload. But if you are doing it using dropzone js then it's .....

Posted On November 5, 2017

Codeigniter 3 undefined property $db in model - Fix

Hi, Guys If you have same issue, undefined property $db in codeigniter 3 application then you are a right place and i can help to fix this issue quick. If you used model and then you are directly going to use "$this->db" for access database table data. You will find this error "undefined property $db in codeigniter" If you are using codeigniter 3 project. However, we can resolve this issue in .....

Posted On November 5, 2017

Codeigniter 3 - call to undefined function base_url() Fixed

Hi, Friends In this tutorial i will show you how to solve base_url() function not working in codeigniter 3. When i was starting to work on my codeigniter 3 project few days ago. I just followed to some tutorial from google. But when i used base_url() in codeigniter 3 project as explained in tutorial. After run project i found following error. "Fatal error: Call to undefined function base_url().....

Posted On November 5, 2017

Laravel 5.5 - POST <target url> 419 (unknown status) - can't ajax post data

When i was working on my new laravel 5.5 application and i was making insert update delete using ajax and when i run post ajax request then i got ajax post request 419 unknown status error, you can also see bellow as it was. <pre> POST http://localhost:8000/addmore 419 (unknown status) send @ jquery.min.js:4 ajax @ jquery.min.js:4 (anonymous) @ addmore:55 dispatch @ jquery.min.js:3 r.handle @ jque.....

Posted On November 1, 2017

Flash message in Laravel 5.5 example

Hi, Guys In this tutorial i will let you know how to implement flash message in laravel 5.5 application. We can simply add info, success, error, warning and primary type of flash messages. Here in this tutorial i will use "mercuryseries/flashy" composer package, help of this package i will make simple example. As we know well, flash message is very important to notify when record is created new, .....

Posted On October 29, 2017

Laravel 5.5 - create custom 404 error page

In this article, i will let you know how to create custom error page in laravel 5.5 application. If you know well laravel then you know we can simply create error pages in errors directory of views folder, but in this article i will show you to create custom 404 error page using route and right way of SEO friendly. Here, i will explain how to handle laravel exception and manage all custom errors .....

Posted On September 27, 2017

Laravel 5.5 Generate PDF File From View

In this article, i will let you explain how to generate pdf file from html view in laravel 5.5 application. We mostly require to generate PDF file from html view for invoice, receipt, products etc. There are several composer packages available for pdf generate in laravel 5.5 application, However we can use "laravel-dompdf" library. laravel-dompdf provide to generate very easily using laravel bal.....

Posted On September 20, 2017