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 | | 212 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 | | 426 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 | | 1459 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 | | 584 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 | | 5950 Viewer | Category : PHP Laravel
READ MORE


Form JS Plugin Bootstrap maxlength plugin Field Location Count orderBy Linkedin API glob Object to Array refs Message Controller Upgrade Sitemap roumen/sitemap Homepage Highchart Sub-Domain RSS Middleware Sort Force clipboard.js Request Method execute query Generate Div Demo helper User Command laravel-elixir View PHPExcel Executed Animate API Delete CloudConvert API First Laravel Foreach Source Code Custom Command Dynamic Dependant Dropdown Plugins Validation meta http-equiv tag MassAssignmentException Configuration Composer Mailgun API word-wrap Subscription Determine Current bootstrap-growl RAND() Percentage Remote toSql Twitter OAuth Scroll Moment JS Jquery Dialog Box Artisan pngquant Facebook API setTimeout() tagsinput.js str_replace After Strip Tags ajaxComplete Terminal Carbon Laravel Cashier CURL gmaps.js Form Jquery getQueryLog Magento Laravel 5.4 Custom Multiple Array Backup setInterval() Amazon S3 Letter Zip Capitalize Recursive Subscribe Date Format Tutorial Key Constraint Bootbox.js Special throttle Rewrite PHP artisan Fetch stevebauman/location composer package Socialite Magento 2 Jquery Modal inner join Technology Last Send Instagram API Connection Bootstrap Star Rating Plugin array_map Pagination jquery.lazyload.js is_null clockface plugin Multi Auth whitespace Login With FB datatables AngularJS Filter Image Upload Local Interface File Thumbnails file_exists Website no-captcha Resize Image array_change_key_case bootstrap tagsinput milon/barcode Enable ServiceProvider Form Validation php artisan serve Windows Admin Bootstrap Theme Excel Mediafıre API Interfaces Commit Bitbucket Top array_combine Codeigniter