Latest Post

PHP - How to create zip file and download using ZipArchive ?

Today, i am going to share with you how to create zip file using ZipArchive then give for download. So here i will give you very simple example to do this. We may require to create zip archive file using php code. We need to add some photos, docs etc on that zip file then give download. So here i am going to make very simple function createZip() that will help to create zip archive file. Using this function you have to simple pass array of file, docs, picture with path. So here i make very simple index.php file and you have to just copy that and run it. Make sure you have two image file sho.....

By Hardik Savani | September 24, 2017 | | 94 Viewer | Category : PHP

Laravel 5.5 group by doesn't work - fixed

Someday ago i just installed laravel 5.5 application and i was checking new feature and making some examples. But i was working on database query builder example one by one, i got following error when i used group by on single column. My query was like as bellow example, so you can see on database query i simple get all users and group by with name. So, let's simply see how it is: <strong>DB Query:</strong> <pre> $users = DB::table("users") ->groupBy("name") ->get(); dd($users); </pre> But when i run above query using database query builder i got following error, as.....

By Hardik Savani | September 22, 2017 | | 399 Viewer | Category : PHP Laravel

Laravel 5.5 Create Custom Middleware example

Middleware are used for filter HTTP requests in your web application. One of the basic requirement of any web application is HTTP requests filter, so we have to make is well for example make auth middleware. auth middleware always check if you are going then and then you can access those page. In laravel 5.5 application they are provide several default web middleware but in this tutorial we are going to create custom middleware for laravel 5.5 application. In this example, i am going to create "checkType" middleware and i will use simply on route, when they route will run you must have to pas.....

By Hardik Savani | September 17, 2017 | | 1406 Viewer | Category : PHP Laravel

Bootstrap star rating example using bootstrap-star-rating plugin

Today i am going to share with you design layout of bootstrap star rating in html. We may sometime require to do star rating system in your php, laravel, codeigniter etc projects. but you think how to make design for star rating because layout is always most important. If you doing manually using js and css then i don't think you can do it quickly, so it can take time. Here, we are going to use bootstrap-star-rating bootstrap plugin for star rating. bootstrap-star-rating plugin provide very simple way to make five star design with jquery code. Also they are give us very easy way to do this. w.....

By Hardik Savani | September 15, 2017 | | 579 Viewer | Category : Bootstrap HTML

Laravel 5.5 custom validation rules example

As we know very well about, few days ago laravel 5.5 released and they introduce several feature. They also change method of create custom validation rules. So in this post i explain you how to create custom validation rules in laravel 5.5 application. Validation is a primary requirement of every project, without validation we can not release successful application or website. Because if you haven't implemented validation then you get wrong information from use input. Laravel provide there are several default validation rules like required, max, min, array, unique, digits, in, boolean, befor.....

By Hardik Savani | September 10, 2017 | | 5814 Viewer | Category : PHP Laravel

Prompt modal Form Jquery characters Blade inject gmaps.js milon/barcode File Upload Express Base URL Subscription ixudra/curl composer package chmod Location HTML to PDF read more Control response() Solve Access ajaxComplete COUNT() CORS execute query Image Upload XML Listener Resize Image Parsleyjs Progress Bar Current Middleware inner join Clear First Folder PHPExcel Date Format Validation Count Ajax bootstrap-progressbar.js Linux MSSQL Sql Google Chart hasColumn AngularJS Filter Delete enableQueryLog yajra/laravel-datatables-oracle Repo Branch php.ini Technology filter csrf_token Dialog box select2.js Send Page Laravel Eloquent Artisan Generate Cordova Controluser Paypal Integration Mediafıre API Confirm Box thomaswelton/laravel-gravatar bootstrap-multiselect plugin Custom Blocked ACL Highchart Tracking Ionic framework Query Builder Vue.JS voyager package Route Gravatar Image Permission Config league/flysystem-dropbox Jquery UI Special Value node.js Ckeditor Paypal Payment Gateway Element Exists Now Flash Message INTERVAL Environment oauth Jquery Dialog Box Convert PayPal date_format() Directory intervention/image Data Manual Autocomplete strpos Apache Remember me Calculate Index Components & Slots Amazon S3 CloudConvert API Captcha code Typeahead JS Payment Gateway Links phpmyadmin Terminal pop() Snippet FadeIn After nl2br Sublime text 3 DB::raw() clockface plugin Where Not In Query MySQL Subquery Redis length Popup Box json() Current Page Div Bootstrap show password Plugin Sendgrid REST Modular hasTable Cross Scout Package Bitbucket Sitemap Percentage xoxco tags input Email Verification Old Automatically