Latest Post

Laravel 5 - "syntax error or access violation 1055 in group by" Solved

Yesterday i was working on my Laravel 5.4 application and when i use group by statement in query builder I found error like as bellow: <br/> <strong> SQLSTATE[42000]: Syntax error or access violation: 1055 '' isn't in GROUP BY (SQL: select `products`.*, SUM(products_stock.stock) from `products` inner join `products_stock` on `products_stock`.`product_id` = `products`.`id` group by `products`.`id`) </strong> I was thinking what will be error and why it comes. i thought maybe it comes from mysql. i just add following query using laravel builder as like bellow: <strong>Laravel.....

By Hardik Savani | February 15, 2017 | | 2381 Viewer | Category : Laravel

How to execute artisan commands from route or controller in Laravel ?

Sometimes we require to run php artisan command from route or controller file in out Laravel Application, However we can do it using Artisan facade. Laravel Artisan facade that way we can easily run all artisan command with argument. Artisan facade have two method call() and queue(), queue() through we can simply make process in queue like email sending etc. So let's see simple example with route. In this example we run "php artisan migrate" command using artisan facade. Here i bellow example you can learn how you can run artisan commands from route. <strong>Example:</strong> <pre class="pre.....

By Hardik Savani | February 12, 2017 | | 3567 Viewer | Category : Laravel

PHP - Getting Started PHPUnit test with simple example

PHPUnit is a one type of unit testing framework for PHP language. In todays PHPUnit is very popular for testing. Most of site owner want to implement PHPUnit test because that way we can simply test using command. Without testing our website will never be good to publish. But if you don't know about PHPUnit and no idea how to start so just follow bellow example for scratch. I will give you very simple example of PHPUnit and how it works from scratch. I make quick easy example with phpunit command. We have to create two file like as listed bellow: <strong>1)MyTest.php</strong> <strong>2)MyTest.....

By Hardik Savani | February 12, 2017 | | 2419 Viewer | Category : PHP

PHP - Bootstrap autocomplete tokenfield with Ajax Example

In this post, i am share with you example of how to make tokenfield autocomplete with ajax in PHP. I will give you very simple example so you can easily use with your core PHP Project and other framework like Laravel, codeigniter etc. Here in this example we use Bootstrap tokenfield plugin for tags ajax autocomplete. tokenfield plugin is advanced tagging/tokenizing plugin for jQuery and Twitter Bootstrap with a focus on keyboard and copy-paste support. tokenfield plugin also provide typeahead js for tags autocomplete, But it this example i use jquery ui for autocomplete ajax. In this example.....

By Hardik Savani | February 10, 2017 | | 20187 Viewer | Category : PHP Bootstrap jQuery MySql Ajax

How to integrate paypal payment gateway with laravel 5.4

Today, I am going to show you How to integrate paypal payment gateway in our Laravel application. In this tutorial i explain step by step example code of How to integrate paypal payment gateway. Here i give you full example of How to integrate paypal payment gateway step by step like create laravel project, migration, model, route, blade file etc. So you have to just follow few step as listed bellow. <strong class="step">Follow Bellow Few Step:</strong> <strong>1)Install Laravel Application</strong> <strong>2)Database Configuration</strong> <strong>3)Install Required Packages</strong> <stron.....

By Hardik Savani | February 8, 2017 | | 83830 Viewer | Category : PHP Laravel

Remove Dropzone.js Technology Repo word-wrap FadeIn Backup Linkedin API Old Where Not In Query Interfaces API Packages ACL Origin Artisan hasColumn Prompt modal Laravel 5 Ubuntu 14.04 Reset throttle Delete orderBy JWT Form Validation Strip Tags node.js Bootstrap Plugin Gmail Numeric Validation Magento 2 SweetAlert Plugin Remote Inserted Id Laravel Passport read more Draggable stevebauman/location composer package Strings JS Master Current Page Multiple CRUD File Request Method Attr Sublime text 2 select box search RAND() Ionic Laravel 5.3 500 error page lowercase Send Where In Query away() auth() Exists Automatically Custom Command Calculate select2.js Export PHPExcel HTML to PDF Div AngularJS TrustAsHTML Filter Class Laravel 5.4 RSS Feed Chat Gravatar Image gmaps.js Ip Address Limit SUBSTRING_INDEX() roumen/feed package Algolia Package Tutorial Pull Command Array Typeahead JS Form Jquery Update Check PingPong Laravel Cashier array_change_key_case no-captcha Toggle Function Sendgrid Empty filter_var Generate Datetimepicker Bootstrap show password Plugin Sub-Domain Executed Accordion View Mysql Concat Jquery UI AngularJS Filter Botdetect Captcha Localization Express Page Mail Confirm Box tagsinput.js Trans Helper Contact US Form Laravel Builder Parsley Local Magento DB ajaxStart Bootstrap Tokenfield Plugin Environment Jquery Modal Loop Highchart Tooltip Mailchimp API Login With FB CSS Apache Blocked Barcode league/flysystem-dropbox Image Gallery Switchery JS Column MassAssignmentException Library date_format() ppa nl2br Base URL enableQueryLog SEO Access Folder