HDTuto.com

PHP


Laravel 5.8 specified key was too long error - Solved

Just tomorrow i was installing laravel 5.8 and run migration at that time i got specified key was too long error in migration. you can see it was same error bellow message: "SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))" Than i checked with user table migration but over.....

Posted On March 26, 2019

Image Upload Tutorial with Laravel 5.8

In this tutorial, Laravel 5.8 image upload with validation is a topic. we will learn how to upload and display image in laravel 5.8. i will show you step by step to create image upload example with laravel 5.8. we can simply add image upload validation like image, mimes, max file upload etc, So you can easily understand and you it simply. In this example, we will create two routes one for get me.....

Posted On March 19, 2019

Laravel 5.8 Ajax Tutorial Example

In this example, i will show you how to send ajax request in laravel 5.8. we can easily send jquery ajax request like post request, get request, put request, delete request etc. You will learn how to write ajax request code in view file and how to pass data from view to controller using ajax in laravel 5.8. you can easily also send json response. If you are using post request then you must have .....

Posted On March 14, 2019

Laravel 5.8 form validation example

Today's topic how to create form validation with error messages in php laravel 5.8. we can simply create form validation in controller side and display error messages in blade file on client side validation message. you can easily use laravel 5.8 default validation rules like form validation number, form validation nullable, form validation max length, form validation greater than, form validatio.....

Posted On March 12, 2019

How to get client ip address in laravel 5.8?

You can get several way ip address using Request ip, Request getClientIp and request helper function. In this example, i will show you how to get current user ip address in laravel 5.8 controller file. You can simply get client ip address from request object in laravel 5.8. Sometime we may require to get client ip address from request object in our laravel 5.7 application. If you are use core PH.....

Posted On March 12, 2019

Laravel 5.8 Features and Updates | What Is New

In this tutorial, we will talk about new feature an updates of laravel new version laravel 5.8. i will list of what's new features and upgrade point. We will discuss some of the noticeable changes and some of the new additions to the Laravel 5.8 family. we will see list of main changes in this tutorial about what's new in laravel 5.8 version. Let's see one by one important updates on laravel 5......

Posted On February 28, 2019

Ajax validation in laravel 5.7 Example

In this tutorial, i will let you know how to use laravel validation using ajax request. we will use laravel validation for jquery ajax request in laravel 5.7. you will learn how to print error of laravel validation with jquery ajax. Jquery also provide to write logic of validation like required, email etc with ajax easily, but if you need use laravel validation like unique, digits, date validatio.....

Posted On February 12, 2019

Laravel 5.7 user profile page example

In this tutorial, i will let you know how to create profile page with update validation in laravel 5.7. You can learn how to write validation for update profile page. You will understand of email, name, profile image upload or profile picture avatar etc in user profile page. Just follow bellow example code and learn to add validation of user profile page in laravel 5.7. <strong>Update Method:</s.....

Posted On February 11, 2019

Install or upgrade php 7.2 to 7.3 ubuntu command

If you want to upgrade php 7.2 to 7.3 version using command in ubuntu than i will help to show list of command to install 7.3 in your ubuntu 14, ubuntu 16, ubuntu 18 version. we might be require to update version on php 7.3 because of our project requirement. you can update simply php 7 into php 7.3 version. we fire ondrej/php command first that will get files of new php version then we will run.....

Posted On February 7, 2019

Laravel 5 csrf token mismatch in Jquery Ajax POST Request

Hi Guys, In this post, i will show you how to solve csrf token mismatch error in php laravel. ajax is a more usable resource in web development. whenever you are write code of jquery ajax post, delete, put or patch request then you must pass csrf token as "_token" field in your blade file. So, if you don't know how to send csrf token into ajax post request or you found any error when you work wit.....

Posted On January 8, 2019

Blog Search