Popular Post


Order by using multiple columns and manually array field in Laravel?

If you want to sort multiple columns in Laravel by using orderBy(). Whenever you need to give multiple column in your query then you can use twice time orderBy() and give them. you can give multiple columns in laravel by following example : <strong>Users Table :</strong> <table class="table table-bordered pagin-table"><tbody><tr><th>id</th><th>site_id</th><th>sub_site_id</th><th>name</th><th>email</th></tr><tr><td>1</td><td>4</td><td>7</td><td>john</td><td>john@gmail.com</td></tr><tr><td>2</td><td>3</td><td>4</td><td>ram</td><td>ram@gmail.com</td></tr><tr><td>3</td><td>4</td><td>2</td><td>ade.....

By Hardik Savani | January 25, 2016 | | 5766 Viewer | Category : Laravel
READ MORE

Laravel 5 - Google reCaptcha code and Validation example using anhskohbo/no-captcha package

I think we should use Google captcha code on our registration form, contact form etc because captcha code prevent spams, bots etc. Most of the application we need to use captcha varification because it very important for security reason. There are several library to generate captcha image in Laravel. In this example i use Google reCaptcha for generate captcha using anhskohbo/no-captcha package. anhskohbo/no-captcha is very popular package. In this post i give you very simple and from scratch of generate Google reCaptcha code as you can also see bellow preview. After complete this example you .....

By Hardik Savani | May 16, 2016 | | 5707 Viewer | Category : Laravel Google API
READ MORE

Laravel 5.3 - Customize pagination templates example from scratch

Today, I am going to tell you how to building and apply new custom paginator view in Laravel 5.3. Laravel 5.3 added new features and update for easily implement your own manual pagination blade template. By Default Laravel 5.3 provide us very simple bootstrap pagination view. But if you are not using bootstrap and you want to change then you can simply change OR if you want to add new bootstrap pagination layout then you can do it. In bellow example you can see how to create custom blade layout and use them. This example from scratch so you can simply implement it in your project or laravel .....

By Hardik Savani | October 9, 2016 | | 5691 Viewer | Category : Laravel
READ MORE

Laravel 5.3 - Create Bootstrap Contact US Form using Form Request

Contact Us Page is very basic requirement of any Website that way owner can get feedback from users. So, I am going to share with you how to create simple bootstrap contact us form using Form Request in Laravel 5.3. In this example i create simple "contatctus" table with three simple fields name, email and message. We will simple get value of name, email and message using bootstrap form layout. So you have to just follow bellow few step and you can simple implement contact us form in your website. So, let's follow bellow step and after complete whole example you will find bellow layout page .....

By Hardik Savani | October 23, 2016 | | 5542 Viewer | Category : Laravel Bootstrap
READ MORE

Laravel 5 - Barcode generator example using milon/barcode package

In this post i am going to give you example of how to generate barcode in laravel application. we will create barcode using milon/barcode package that provide several way to generate QR Code and barcode. If you need to generate barcode for your products then you generate barcode sticker in laravel application using milon/barcode package. I added preview of barcode after finish example you can find output like bellow preview. It's provide several barcode like Qr Code, PDF417, C39,C39+, C39E,C39E+, C93, S25,S25+, I25,I25+ etc. You have to just follow few step: <strong>Preview:</strong> <img widt.....

By Hardik Savani | May 17, 2016 | | 5537 Viewer | Category : Laravel
READ MORE

Example of Cron Job in Laravel 5

Whenever you want to define your scheduler task, and if you are working on laravel framework then you can do it easy way and very secure. Laravel provide <strong>Scheduling</strong> and Scheduling through you can manage your cron, if you need to run every day, every minute, every hourly, weekly, on specified days.So, basically i going to give example how to create cronjobs in laravel. First you have to create one command that way you can create proper programming and good way, but you can also do without create command, It is good if you create your own command and with good code. So, open yo.....

By Hardik Savani | February 6, 2016 | | 5367 Viewer | Category : Laravel
READ MORE

Laravel 5 Google OAuth authentication using Socialite Package

In Todays, Social network is very wide and lots of people are connected with them. So, Social authentication is important to implement in website because nowdays most of the users or developer etc will connected with Social network like google,facebook, twitter, gitbub etc. So, In this post i want to share with you how to do sign in with google and how to do sign up with google. Laravel 5 provide very easy way to implement login with your google account and register with your google id. Laravel 5 provide us Socialite package that is help to social authentication. In this post we will make exam.....

By Hardik Savani | April 16, 2016 | | 5347 Viewer | Category : Laravel Google API
READ MORE

Laravel 5.3 - How to create SEO friendly sluggable URL

In this post, I am going to share with you How to generate SEO friendly URL in Laravel 5 application. SEO is very important part of website for increase users traffic. If your website have seo friendly URL then it can help to increase your site rand in google index, yahoo etc. So If you require to generate SEO friendly URL in your laravel application then We can do it by "eloquent-sluggable" package. eloquent-sluggable package developed by cviebrock. Eloquent-sluggable package provide to automatic create unique url for our post. this package create unique slug url that way it is good for SEO.....

By Hardik Savani | November 13, 2016 | | 5310 Viewer | Category : Laravel
READ MORE

Laravel 5 custom pagination view example

laravel default also provide pagination view using bootstrap design like next and previous button and number page with link. but it is a very comman and generally used by most of developer. If you want to change it using Presenter class of laravel. you can set your own custom view for your pagination layout. In bellow i give you the example of i added first, last, next and previous button and main banifit is that you can easily modify that view and link. so let's see the preview of image layout of pagination. <strong class="preview">Preview:</strong> <img width="100%" src="/upload/laravel_pa.....

By Hardik Savani | March 23, 2016 | | 5264 Viewer | Category : Laravel
READ MORE

HTML/FORM not found in Laravel 5?

If you want to use Form or Html class and when you will see error like ‘HTML’ class not found OR ‘Form’ class not found. don’t worry about that because Laravel 5 change the package. you should download the HTML and FORM class helper from given instruction above. Add given bellow text to your composer.json file. <pre>"require": { "laravel/framework": "5.0.*", "laravelcollective/html": "~5.0" },</pre> <strong>OR</strong> <pre>composer require laravelcollective/html</pre> after fire composer update command After Update composer, open config/app.php and add this line to the ‘providers.....

By Hardik Savani | January 27, 2016 | | 5136 Viewer | Category : Laravel
READ MORE


    Laravel 5.2 and AngularJS CRUD with Search and Pagination Example.

    Laravel 5.2 and AngularJS CRUD with Search and Pagination Example.

    Open Post

    Jquery - input tags plugin example using jquery.tagsinput.js plugin

    Jquery - input tags plugin example using jquery.tagsinput.js plugin

    Open Post

    Laravel 5 - How to prevent browser back button after user logout?

    Laravel 5 - How to prevent browser back button after user logout?

    Open Post

    laravel 5.4 New Feature - Add eloquent whereKey method

    laravel 5.4 New Feature - Add eloquent whereKey method

    Open Post

    Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 1

    Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 1

    Open Post

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 1

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 1

    Open Post