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 | | 1322 Viewer | Category : PHP
READ MORE

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 | | 1131 Viewer | Category : PHP Laravel
READ MORE

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 | | 4385 Viewer | Category : PHP Laravel
READ MORE

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 | | 2780 Viewer | Category : Bootstrap HTML
READ MORE

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 | | 8809 Viewer | Category : PHP Laravel
READ MORE


Custom Command Botdetect Captcha Mysql Concat ixudra/curl composer package Authentication glob Components & Slots Record Object Key Old Control Ajax read more helper Packages Database Top POST Ajax Ubuntu User Billing array_change_key_case Instagram API Draggable Opencart google recaptcha code marker Paypal Integration Paypal Payment Gateway Email array_combine Cache webpatser/laravel-uuid Custom max_file_uploads Export csrf_token Accordion WHERE Query Cordova Laravel Factory Solve Each Codeigniter 3 Remote ajaxComplete Subscribe pngquant MVC Foreign Key clockface plugin Parsley Artisan Command str_replace ngclipboard.js lowercase validator.js Input Local bootstrap tagsinput Date Format apache2 Kyslik/column-sortable package Add SUBSTRING_INDEX() Bootstrap maxlength plugin guzzle http client Links Data npm Backup JS HTML to PDF Bootstrap Plugin Loop Codeigniter croppie.js Mediafıre API ajaxStart Animate auth() Where In Query Dialog box Field Parameters Sublime text 2 Determine Laravel Eloquent Datetimepicker Command Laravel 4 jquery.email-autocomplete.min.js bootstrap-multiselect plugin php artisan serve Grayscale Image file_exists timestamps Undefined Check mac Sql pop() Script Bootstrap show password Plugin Laravel Cashier AngularJS Filter GET Ajax thomaswelton/laravel-gravatar Variable phpmyadmin mysqld.sock orderBy Delete Function Autocomplete nl2br Animation Clear chmod Global Variable Current Middleware mod_rewrite bootstrap-growl Xampp Image Object to Array Import Ionic framework Request Method str_random() select2.js characters php.ini Carbon New Features File FILTER_VALIDATE_URL 404 error page getQueryLog Repo Recursive XML Twitter Bootstrap roumen/feed package Remember me yajra/laravel-datatables-oracle Ip Address Barcode