PHP


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 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

Laravel full calendar tutorial example from scratch

In this example you will learn how to implement fullcalendar(JavaScript Event Calendar) in Laravel 5 application. we would like to represent our events, schedule, tasks etc on calendar that way we can see when starting time and ending time. In this article we will use fullcalendar jquery plugin for display events in laravel application. It is very easy to implement. Example is from scratch so yo.....

Posted On May 6, 2017

How to use color picker in Laravel 5 ?

As we know, today we always want to make better layout for each small point of our application like datepicker, colorpicker, sorting etc. If you need to add color code on database then you would like to use color picker instead of just give textbox. In this example you can learn how to use bootstrap color picker in laravel 5 application. Here we use bootstrap-colorpicker plugin for color picker So.....

Posted On May 5, 2017

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 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 get last record of table in Laravel 5?

Here, i will show you how to select last row of database table using Laravel query builder. In PHP Laravel framework, there are several eloquent method to get last record from table. In this article, I will show you two way to getting last row of the table. In this example i going to use following method of laravel eloquent. 1)first() 2)orderBy() 3)latest() Above three method through we can simp.....

Posted On April 16, 2017