Category : PHP


Laravel 5 - category treeview hierarchical structure example with demo

Today, I am going to share with you how to create dynamic category tree view structure in Laravel 5 application using jquery. We sometime require to make tree view structure for category and subcategory. In this tutorial i simple create "categories" table and manage end level of parents and child category with nested tree view structure in Laravel application. I use jquery for make tree view layout and child relationship with category model for hierarchical data. I also add form for create new category in tree view. If you are new in laravel then also you can do it simple and also simply cus.....

By Hardik Savani | November 9, 2016 | | 69285 Viewer | Category : PHP
READ MORE

PHP - How to convert HTML file to PDF using Dompdf library?

Whenever we work on big PHP application, then we generally require to generate PDF of invoice, data, information, subscription etc. If you use any PHP framework like laravel, codeigniter etc then you have option to other package for generate HTML file into PDF. But if you are working on Code PHP then you fetch problem to how to do it. But in this tutorial i am going to give you very simple example to html to pdf convert using DomPDF library. DomPDF library through we can simply render html layout into PDF file. DomPDF library through we can use write external stylesheets, inline style tags, .....

By Hardik Savani | October 23, 2016 | | 23165 Viewer | Category : PHP
READ MORE

Laravel 5 - Full Text Search Example using Scout and Algolia Packages

Today, I am going to give example source code of How to implement full text search in your laravel 5.3 application using scout and algolia. Laravel 5.3 provide us several new feature and introduce new packages. Laravel 5.3 provide Scout Package for full text search from your Model. If you require to add full text search function in your laravel application then you have to choose scout package for to do. In this example i going to explain step by step, so you can simple understand and use it in your laravel project. In this tutorial i give from scratch so let's follow simple few step and imp.....

By Hardik Savani | October 16, 2016 | | 29741 Viewer | Category : PHP
READ MORE

Laravel 5.3 new feature and update - $loop variable

Laravel 5.3 provides several new features in API, Mail, Model, Blade Template etc. Today we learn new feature <strong class="path">$loop</strong> variable of blade view in Laravel 5.3. Laravel Blade templating language provides several things like @if, @foreach, @include etc and you know this thing very well. Laravel 5.3 give new variable $loop in blade template engine and you can use it with <strong>@foreach</strong>. $loop variable through we can simply get first and last records. Sometimes we require to give difference layout of first element and last element of loop. So, you can simply d.....

By Hardik Savani | October 6, 2016 | | 3720 Viewer | Category : PHP
READ MORE

PHP - autocomplete websites with domain and logo using clearbit API

Today, i going to give you pretty interesting example of autocomplete websites lists with name, logo and domain using clearbit API. we simply use free clearbit API and get lists of websites. You can simply use it in your PHP and also any framework(Laravel, codeigniter, zend etc). clearbit website provide us several other API too like Reveal, Discovery, Website Logo and etc. In this example i used following library as bellow listed: <strong>1)clearbit</strong> <strong>2)bootstrap</strong> <strong>3)typeahead</strong> Above library through we can make autocomplete of current websites in your .....

By Hardik Savani | October 2, 2016 | | 4400 Viewer | Category : PHP
READ MORE

Laravel 5 - Multiple markers in google map using gmaps.js

Today, we learn how to implement google map with multiple marker using gmaps.js library in Laravel 5. We can also simply use google map API for maps, But gmaps.js is very popular and they provides very simple way to generate google map. gmaps.js through we can make multiple markers, make routes, Geocoding, Map events etc. In this example i use multiple markers example. If you are beginner then also you can do it simply following post, i did this example from scratch. So, After finish all tutorial you will find layout as bellow: <strong>Preview:</strong> <img src="/upload/laravel-5-gmaps.png.....

By Hardik Savani | September 30, 2016 | | 29440 Viewer | Category : PHP
READ MORE

AngularJS - simple image upload with preview example in PHP

Sometimes, we require to make image uploading with preview selected image before upload using AngularJS. So, This post will help you how to image or file upload in AngularJS and PHP. In this example i didn't user any plugin or directive for image upload. It is very simple so you can use very simple and anywhere. For front-end code write in AngularJS and back-end code write in PHP(for image upload code). It will also display preview of image before upload. Example is working on bellow listed three things, you can see. <strong>1)index.php</strong> <strong>2)upload.php</strong> <strong>3)images.....

By Hardik Savani | September 16, 2016 | | 38636 Viewer | Category : PHP
READ MORE

Codeigniter 3 - select2 ajax autocomplete from database example with demo

Today, I am going to show you how to make select2 dynamic autocomplete from database table in your Codeigniter application. In this post you can lean how to implement ajax autocomplete in your Codeigniter 3 project. Select2 is a Jquery plugin and it is a very famous jquery plugin, using select2 plugin we can do several thing like select box with search, select option with check box, ajax auto-complete etc. sometimes we require to do autocomplete task with select box when we have large amount of data like products, items, category, tags, users etc. so we can't load all the data at the same ti.....

By Hardik Savani | September 15, 2016 | | 55002 Viewer | Category : PHP
READ MORE

Solved - Access Not Configured. Google+ API (truncated...) on google console developer

When i was working on my Laravel 5.3 application with socialite google API. I fetched one issue when redirect on my application. I had successfully created my project on google console with site URL and redirect back URL too. But when it was redirect back on path i found one error like "403 Forbidden - Access Not Configured. Google+ API (truncated...)". I did try my self but i can't solve this error. It was always return error on my screen like this way: <strong>"ClientException in RequestException.php line 107: Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=fal.....

By Hardik Savani | September 13, 2016 | | 11490 Viewer | Category : PHP
READ MORE

PHP - Capture screenshot of website from URL example

Today, i am going to give you example of how to grab screen shot from given URL using PHP curl. There are several website provide API for capture website screenshot image using their API Secret and Key. In this example i am using screenshotmachine.com website API. This website provide very simple way to user their API. If you haven't account on screenshotmachine.com then you must create new account and get <strong class="path">Account Key</strong>. So you have to just copy that key. I also use variable "$accountKey", you have to just assign that key on that variable. It is very simple exampl.....

By Hardik Savani | September 12, 2016 | | 4704 Viewer | Category : PHP
READ MORE

    Laravel 5 Google OAuth authentication using Socialite Package

    Laravel 5 Google OAuth authentication using Socialite Package

    Open Post

    Laravel 5 - Multiple Images Uploading using dropzone.js example with demo

    Laravel 5 - Multiple Images Uploading using dropzone.js example with demo

    Open Post

    Dynamic Autocomplete search using Bootstrap Typeahead JS Example

    Dynamic Autocomplete search using Bootstrap Typeahead JS Example

    Open Post

    How to use elasticsearch from scratch in laravel 5?

    How to use elasticsearch from scratch in laravel 5?

    Open Post

    PHP - import excel file into mysql database tutorial

    PHP - import excel file into mysql database tutorial

    Open Post

    PHP - How to implement Google new reCAPTCHA Code Example with Demo?

    PHP - How to implement Google new reCAPTCHA Code Example with Demo?

    Open Post