Laravel


Laravel 5 - image upload with create thumbnail image example

In this example you can learn how to generate thumbnail image when upload image in laravel project. we always like to make very smooth load our web page. But if you have many images on your web page it can take time to load page on browser, as specially when image is large size. But if you have small size of image(thumbnail) like 300X300 or 100X100 etc. It will save time to load our page. That mak.....

Posted On May 2, 2017

Laravel redirect route with query string example

We may require to redirect named route with another parameters or query string in laravel application, you can do it simply by using "redirect()" helper. redirect() helper provide method route for redirect named route. In this example i will show you how to redirect simple named route, redirect with named route and params, redirect with named route with message. You can simple use and understand. .....

Posted On April 28, 2017

Laravel timepicker example using bootstrap datetimepicker plugin

In this article, we will show how to use timepicker in laravel 5 application. Sometime we need to get specific time from client at that time if we use timepicker then will be good. So if you are using laravel and bootstrap then it is very simple to use timepicker. we will use bootstrap datetimepicker jquery plugin for timepicker. datetimepicker plugin provide several options to configure like chan.....

Posted On April 28, 2017

Laravel 5 - export database table to csv file using LaraCSV

We generally need to generate csv file for export from database table because it is very easy to read data or use something else. In this article we will learn how to create csv file of table data and download that csv file. In this example we will export users table data in csv file. There are several packages for generate csv file, but we will use LaraCSV package use for create csv file. LaraCS.....

Posted On April 23, 2017

Laravel 5 get client ip address

sometime we may require to get client ip or ip address from request in our project. If you are use core PHP and you can get from $_SERVER, but laravel framework provide very simple easy way to get client ip address from request. Here, bellow i gave you example how you can get ip address. you can get using request facade and helper: <strong>Example 1:</strong> <pre> $clientIP = \Request::ip(); </.....

Posted On April 23, 2017

Laravel get and set config variables value example

Here, you can learn how to get or set configuration variables value in laravel 5 application. There two way to get and set config variable value. You can simply use config helper of laravel or config facade. Sometimes, It is very important to get some configuration variable value like Domain URL, timezone, email title etc. PHP Laravel framework provide us very simple and easy way to get and set c.....

Posted On April 22, 2017

How to use bootstrap datepicker in Laravel 5 ?

In this article, we will deal with implement bootstrap datepicker in laravel 5 application. datepicker is nothing related to laravel, it is a separated jquery library. you can simply use datepicker in laravel as you use on another framework or code php project. In this example i use bootstrap-datepicker.js library for datepicker. Here, you can simply use on your blade file, as like bellow to use:.....

Posted On April 21, 2017

How to insert multiple rows in database Laravel 5?

If you want to create multiple records at time using laravel eloquent, then you can do it using "insert()" of laravel eloquent. insert() will provide to bulk insert records. insert() take array argument. You can simply give array then it will create single rows of table, if you pass multi dimensional array, then will create multiple records. Here, you can learn to insert several records at time, .....

Posted On April 19, 2017

Laravel login registration tutorial example using auth scaffold

If you are new in laravel or you want to make login page, register page, reset password page and logout in your laravel application then you can make in 2 minutes. PHP Laravel framework provide to make authentication in just 2 minutes and very easy to make it. You can make it quickly and simply because laravel introduce auth scaffold. In this article, you will get auth module like login, registe.....

Posted On April 18, 2017

Solved - Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found Laravel

Few days ago, i was working on my laravel 5 application and i created some tables using migrations that i required. After sometime i need to change "name" column into "fullname" in users table. I simple created migration for rename of column, But when i run that migration using bellow command: <pre> php artisan migrate </pre> I found bellow error when i run above command: <strong>[Symfony\Compone.....

Posted On April 18, 2017