HDTuto.com

Laravel 5


Laravel 5.5 Jquery Ajax Request Example From Scratch

Some day ago one fiend call me to write simple example of jquery post ajax or get ajax example in laravel 5.5 application. So if you are new in laravel framework OR you don't know how to fire ajax in laravel then you are a right place. Here i will write very simple post ajax request example with pass csrf token in laravel 5.5 application. After end of the article you can assume, how simple run e.....

Posted On August 30, 2017

Laravel 5.5 create zip archive file and download example

Are you want to create zip file programmatically in laravel application then chumper/zipper composer package is help to generate zip file simply. Sometime we need to create zip file with images or other files, then also you have to give download as response. In this article i will let you know how to generate zip file and download as response in laravel 5.5 application using chumper/zipper compo.....

Posted On August 28, 2017

Laravel 5.5 validation example with custom message

Now days laravel 5.5 released for dev version and they release laravel 5.5 official documentation. So in this article i will show you how to add form validation in laravel 5.5 validation. As we know website is always depend on user input, So it's require to add validation for that otherwise client or user does not input wrong details or something, So for example if you want to get email, phone nu.....

Posted On August 27, 2017

Laravel 5.5 get current url with parameters

Today, i am going to show you how to get current url, base url with parameter in your controller or view file. We may sometime need to get current url in controller method or maybe in blade file. So it's not difficult to do this thing in laravel 5.5 application. Laravel provide Request and URL facade for getting request data. So we can simply get those current url using Request and URL facade. we.....

Posted On August 25, 2017

Laravel 5.5 get current user data using Auth

Few days ago laravel launch 5.5 version and there are lot's of new changes and new feature. In this example i will let you know how to get current logged in user details like id, email, name etc. laravel doesn't change for getting current logged in user details. So, we can get current user details using laravel auth. You can also use simple auth helper or Auth facade. So i will give you both exam.....

Posted On August 19, 2017

Laravel 5 - Populate select box from database example

we always require to generate dynamic select box from database table like if you have users table and you require to generate drop down box on all users from database. So in this article i will let you know how to populate drop down list from database. In this example, i simply created users table and added some dummy data. Then i will populate select box using laravel model. So let's see bellow .....

Posted On June 25, 2017

PHP Laravel 5 - Get User Agent Value from Request

In this article, i am going to show you how to get user agent from user request in laravel 5.4 application. PHP Laravel framework did several update from their other version. we will see how we can get user agent value from request object. Laravel 5 introduce Request object that provide user request details. So, let's see bellow two way to get user agent value form laravel 5 application. <strong.....

Posted On June 17, 2017

Laravel 5 Passport - Key path oauth-public.key does not exist or is not readable solved.

When i was working with laravel passport in my application. In my local system works, but when i upload it to git and my friend pull and run project he got it error as following : <strong>Key path "file://F:\xampp\htdocs\blog\storage\oauth-public.key" does not exist or is not readable</strong> I was thinking, what is issue because i already installed successfully laravel passport. But i finally i.....

Posted On May 20, 2017

Laravel autocomplete typeahead search example from scratch

In this article, i will show you how to create jquery ajax autocomplete using typeahead js plugin in Laravel 5 application. If you have thousands of data in database table and you require to display in drop-down or something like to choose that data. So If you use drop-down it load and it's hard to find specific record. So At that time you can simply use jquery autocomplete in your application. I.....

Posted On May 10, 2017

Laravel 5 - Create Simple CRUD(Create Read Update Delete) application example

In this tutorial, i am going to share with you how to create CRUD module in laravel 5 application. CRUD stand for Create, Read, Update and Delete. As we know crud module is always require for basic data input in database. In this example i created "posts" module. i make posts table with title and content column. You can add post, view post, edit post and remove that post. I follow laravel rules .....

Posted On May 7, 2017