Latest Post

Laravel 5 - Authenticate user in NodeJS with socket io using JWT.

Today, i am going to show you how to authenticate user node js using JWT and socket io in Laravel 5.3. It is very very important because if you are working with chat application or messengers system etc with user then you have to use JWT token because it is very safe and secure way. If we work on chat module with socket io but someone can easily hack our code. At that time we require to check given JWT token is valid or not using <strong class="path">socketio-jwt</strong> package of Node. so.....

By Hardik Savani | September 25, 2016 | | 846 Viewer | Category : Laravel Installation Server Node JS Socket.io JWT
READ MORE

Laravel 5.3 - Call to undefined method Illuminate\Database\Query\Builder::lists() Solved

Today i want to tell you about error "Call to undefined method Illuminate\Database\Query\Builder::lists()" and how to solve this error in Laravel 5.3. When i was working on my Laravel 5.3 application, at that time i require to get lists of email and id of users table for select drop-down. But when i use lists() with DB table i found error "Call to undefined method Illuminate\Database\Query\Builder::lists()". Error was like bellow preview: <pre> BadMethodCallException in Builder.php line 2440: .....

By Hardik Savani | September 24, 2016 | | 115 Viewer | Category : Laravel
READ MORE

Laravel 5.3 - image dimension validation rules example

Laravel 5 provide new image dimensions validation option for image upload. In this validation rules we can set several rules like as listed bellow: <strong class="step">Dimensions Rules:</strong> <strong>1)width</strong> <strong>2)height</strong> <strong>3)min_width</strong> <strong>4)min_height</strong> <strong>5)max_width</strong> <strong>6)max_height</strong> <strong>7)ratio</strong> In this Dimensions option through we can set fix width and height, if invalid width and height of image then .....

By Hardik Savani | September 24, 2016 | | 390 Viewer | Category : Laravel
READ MORE

How to call AngularJS controller function in Jquery?

Today, i am going to show you how to call angular function in your js file. Sometimes we need to call angular controller function in our jquery code because we can make single function in all project. It is very simple post but it important because many times we require to call angularjs function from jquery. So, i given bellow example will help you how to call angularjs function in jquery. It is from scratch that way you can simply understand. In this example i created one function "$scope......

By Hardik Savani | September 22, 2016 | | 134 Viewer | Category : Javascript jQuery AngularJS
READ MORE

Response download with file in Laravel 5.3 example

We sometimes require to return response with download file from controller method like generate invoice and give to download or etc. Laravel 5 provide us response() with download method that way we can do it. In First argument of download() we have to give path of download file. We can rename of download file by passing second argument of download(). We can also set headers of file by passing third argument. In bellow example will help you how it is works. So, first i am going to create new r.....

By Hardik Savani | September 21, 2016 | | 203 Viewer | Category : Laravel
READ MORE

Laravel 5.3 - import export csv and excel file into database

Laravel 5.3 release few days ago and they upgrade several feature on Laravel 5.3. They also some changes on directory structure and etc. So, Today I am going to give you one example how to import and export xls, xlsx and csv files. I also added post for Laravel 5, but this example will help you to implement on your Laravel 5.3 application. In this example through you can import excel or csv to store in database and export or download excel or csv file from database table. For this example i u.....

By Hardik Savani | September 18, 2016 | | 1534 Viewer | Category : Laravel
READ MORE

    Jquery Select2 - Select box with search example code

    Jquery Select2 - Select box with search example code

    Open Post

    Laravel 5 and Vue JS CRUD with Pagination example and demo from scratch

    Laravel 5 and Vue JS CRUD with Pagination example and demo from scratch

    Open Post

    How to create custom helper in Laravel 5?

    How to create custom helper in Laravel 5?

    Open Post

    PHP AngularJS CRUD with Search and Pagination Example From Scratch

    PHP AngularJS CRUD with Search and Pagination Example From Scratch

    Open Post

    How to use login throttle in laravel 5?

    How to use login throttle in laravel 5?

    Open Post

    Laravel 5 - Generate Captcha code and Validation example using BotDetect package

    Laravel 5 - Generate Captcha code and Validation example using BotDetect package

    Open Post