Category : PHP have tutorials for PHP, here you can study articles of PHP, PHP posts collection, most popular and useful tutorials of PHP, here you can find list of all relevant posts and example about PHP, we have lists of tutorials and examples about PHP.very simple and quick example collection of Latest PHP category.

How to send mail using queue in Laravel 5.7?

In this tutorial, i will demonstrate how to send email using queue with laravel 5.7. I will show how to use queue jobs in laravel from scratch. we will simple create email send using queue in this article. Sometime, you see some process take time to load like email send, payment gateway etc. When you send email for verification or send invoice then it load time to send mail because it is services. If you don't want to wait to user for send email or other process on loading server side process then you can use queue. because it's very fast and visitor will happy to see loading time. Here, i a.....

By Hardik Savani | September 20, 2018 | | 1186 Viewer | Category : PHP

How to use Union query with Laravel Eloquent?

In this post, i would like to share with you how we can use union and union all query in laravel 5 application. Laravel eloquent provide query builder and they give us join, relationship, subquery and also union. But we need some time to get all records from two different table at that time you need to use union or union all query. So here i am going to give you very simple example with tables and also show you output of result. Here we will create two tables "product_silver" and "product_gold" with dummy data like as bellow. Then after we will write union query and result also i shown as sc.....

By Hardik Savani | September 18, 2018 | | 1297 Viewer | Category : PHP

PHP Webcam Capture Image and Save from Camera

If you want to take a picture of user from webcam or mobile camera then you can use javascript webcam library for capture image form camera and save it in php. In this tutorial, i will show you how to implement webcam capture and store image on server in php application. we will use webcam library for live capture image. webcam library will help to display desktop camera and your mobile camera so, user can see and take picture from there. In this example, we will create index.php file and show you layout of your webcam with "Take Snapshot" button, when you will click on that button .....

By Hardik Savani | September 15, 2018 | | 1568 Viewer | Category : PHP

Laravel 5.7 JQuery Form Validation Example

In this post, i will guide you to create front end form validation without page refresh using using jquery in laravel 5.7 application. we will use bootstrap jquery validate js for font-end validation in laravel 5.7. we always love add frontend jquery validation on registration page or product create page, because we don't require to request on server and then page refresh again and show to user. It would be great if you use jquery front end validation before submit to server. It will help to server load time and show you a quick errors on front side form. In this example, i create simple for.....

By Hardik Savani | September 13, 2018 | | 1585 Viewer | Category : PHP

Laravel 5.7 - Pagination Link Customizations Example

Today, i will guide you how to customize pagination link in laravel 5.7. Laravel 5.7 has a new pagination method to customize the number of links on each side of the current page link. Laravel release 5.7 new version with lot's of new features. One of the new feature is a Pagination Link Customizations from them. laravel provide onEachSide() helper to make customize page link. You don't require to create custom pagination view for link customize. Here i will quick show you how it is work with linksOnEachSide. we also create simple example so you can understand how it should work. <span class.....

By Hardik Savani | September 12, 2018 | | 1735 Viewer | Category : PHP

Laravel age calculate from date using carbon

In this small tutorial, i will show you how to calculate age from date using carbon in laravel 5 application. If you work on big web application then you might be sometime require to age calculate from date of birth. Like your birth date is around 02/07/1994 and today date like 10/9/2018 then it should be return 24 years old you are. So, you can simply age calculation by using laravel carbon. So just see example: <strong>Example:</strong> <pre class="prettyprint lang-php"> $dateOfBirth = '1994-07-02'; $years = \Carbon::parse($dateOfBirth)->age; dd($years); </pre> I hope it can help you.......

By Hardik Savani | September 11, 2018 | | 1599 Viewer | Category : PHP

Codeigniter 3 create zip file and download example

Sometime, we may require to create and download zip file in codeigniter 3 project. In this tutorial, i will show you how to create zip file in codeigniter using zip library. Whenever, we have lot's of files and need to give download to user when click on submit button, at that we never give one by one file to download because it is small size of files might be and it take time to download one by one. But if you create zip file and put all the files on zip then it can be very fast download and user don't need to wait so much time. So, in this example i will let you know how you can create zip .....

By Hardik Savani | September 10, 2018 | | 1644 Viewer | Category : PHP

Laravel 5.7 Autocomplete Search from Database using Typeahead JS

Today, I write tutorial on dynamic search dropdown autocomplete from database using bootstrap typeahead js in laravel 5.6 app. You have to just follow few step to create autocomplete search text box from database with jquery ajax in laravel 5.7. Ajax Autocomplete is must if you are dealing with big data table, like you have items or products table and thousands of records so it's not possible to give drop-down box, but it is better if we use Autocomplete instead of select box. In this example we will use Bootstrap Typeahead JS plugin for auto-complete, Typeahead.js plugin provide good layo.....

By Hardik Savani | September 7, 2018 | | 1947 Viewer | Category : PHP

Laravel 5.7 Ajax Pagination Example

In this tutorial, I would like to show you how to create jquery ajax pagination in laravel 5.7. we will create a step by step simple ajax pagination in laravel 5.7. Pagination is a very basic requirement of every project like Admin Panel, ERP or back-end Panel. A pagination helps us to load few records every time, that way cannot broken web page due to lots of data. If you are making pagination and do it using ajax then it a better way. Ajax Pagination load only your table data instead of the whole page. So ajax pagination is very helpful. In this example, we simply create "items" table usi.....

By Hardik Savani | September 6, 2018 | | 1866 Viewer | Category : PHP

Laravel 5.7 CRUD (Create Read Update Delete) Tutorial Example

Today, I want to describe step by step crud operation with laravel 5.7 application. In this tutorial, you will learn simple insert update delete operation with laravel 5.7 from scratch. You need to follow few step and you will get basic crud stuff using controller, model, route, bootstrap 4 and blade. As we know just yesterday, laravel introduce it's new version of laravel 5.7. in laravel 5.7 they provide several new things that might be help you in your application. They also change directory structure for blade file. In this tutorial, you will learn very basic crud operation with l.....

By Hardik Savani | September 5, 2018 | | 2193 Viewer | Category : PHP