Laravel 5.5

Laravel 5.5 - 1071 specified key was too long max key length is 767 bytes

Someday ago, i wan working on my new laravel 5.5 application in my new system, with new configuration. I was simply installed laravel 5.5 app and then i created mysql database and then i run migration, but i got following error on my terminal. <br/> "[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key.....

Posted On November 21, 2017

Laravel 7.x and 6.x country list using Countries package

Hi Guys. In this article i will let you know about countries dropdown in laravel. We may sometime need to get all countries with flag, currency, states, languages, code, timezone, capital, calling code, sign, area, latitude and logitude, multiple ISO codes etc. So It is not better if you create database table with country and then manually you store all information from google or something else. .....

Posted On November 17, 2017

How to force redirect http to https in Laravel 7.x and 6.x ?

When i was working on my first laravel 5.5 application and i make it live and i want secure connection using ssl, i buy from hosting provider. But i was thinking how to redirect http to https of url in Laravel. After research i found to force redirect http to https my website link. If you are using Laravel 5.5 then you can redirect http to https link using middleware. I would like to create middl.....

Posted On November 15, 2017

Laravel 7.x and 6.x active menu item using request

We know all that laravel is more famous as back-end like api development, admin panel etc. If you are wanted to make admin panel then you select theme like adminLT or any other bootstrap theme. When you make side bar or menu item then you have to make it active when we current on that page. like we have several link users, admins, products, items etc So when you are in products page then it should.....

Posted On November 14, 2017

Laravel 5.5 Ajax Pagination Example

Hi Guys. In this article i will let you know how to make jquery ajax pagination in Laravel 5.5 application. As we know, today ajax is more use because every one wants to his web app should be work fast. So if you want make your web app more fast then you have to use jquery ajax. Using jquery ajax you can simply get data and post data using api. So here i want to share with you how to create ajax .....

Posted On November 13, 2017

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 7.x and 6.x 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 7.x and 6.x - 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

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

Blog Search

Copyright © 2020 HDTuto.com. All rights reserved.