Popular Post


Laravel 5 Repository Pattern Tutorial from scratch

In this post i want to share with you how to create Repository Pattern in Laravel 5 application. generally we are getting data directly from model, I mean we are use just MVC. But if you have big application then it is better way if you use Repository Pattern. I will give you few step to create Repository Pattern. normally we use directly from Model but if you make Repository Pattern for every module then it is good way to develop laravel application. <img width="100%" style="border:2px solid red" src="/upload/Laravel-5-Repository-Pattern-Tutorial.png"> <strong class="step">Step 1: Create In.....

By Hardik Savani | April 13, 2016 | | 18423 Viewer | Category : Laravel
READ MORE

Laravel 5.2 multi auth example using Auth guard from scratch

Multiple authentication is very important in big application of laravel. If you work on large project then you mostly prefer to diferente tables, like you always prefer "users" table for site user registration and "admins" table for admin user that way make strong security. we always use Auth for making user authentication but you have question how to make admins with auth then you can do easily by following step. <strong class="step">Step 1: Auth Config Setting</strong> In this step we will add new admin guard from auth.php file of config directory. so first open auth.php file and add bellow.....

By Hardik Savani | May 1, 2016 | | 18270 Viewer | Category : Laravel
READ MORE

How to implement infinite ajax scroll pagination in Laravel 5?

We always want to see auto load more data on page scroll on your home page or other pages for posts, news, listing etc like on facebook, twitter, linkedin etc. If you implemented infinite scroll on your php application then you don't require to give pagination and also not require to page refresh every time when page scroll. So, Today, i going to give you simple example of infinite scroll using jquery ajax on page scroll in laravel application from scratch. I use jquery scroll event for page scroll. this example is pretty simple, you can customize simply for your development. You have to jus.....

By Hardik Savani | August 23, 2016 | | 18154 Viewer | Category : PHP Laravel Bootstrap jQuery Ajax
READ MORE

Laravel 5.3 - Form Input Validation rules example with demo

Today, I am going to give you how to use input form validation rules of Laravel 5.3. We always require to use form with validation in our Laravel application. So today you can learn how to implement validation rules and how to print error message on blade files. Laravel 5 provide several pre-define validation rules that way we can user it simply. In this example i used some validation rules that listed bellow that need to apply. <strong>1)required:</strong> for must be required field. <strong>2)min:</strong> for limit to enter minimum character. <strong>3)max:</strong> for limit to enter maxi.....

By Hardik Savani | October 14, 2016 | | 17126 Viewer | Category : Laravel
READ MORE

Laravel 5 create Custom Validation Rule example.

Custom Validation Rule is very usefull and interesting concept of laravel 5 because custom validation throught we can re-use validation and use it easily by just name as like laravel core validation(required,same,in etc.). So, In this post i am going to show you how to create custom validation rules in laravel 5.2. you can create very simple way and use too. you can create custom validation rules by few following step and you can see preview of example that give for add custom validation rule. In this example you are creating <strong class="path">is_odd_string</strong> custom validation rule. .....

By Hardik Savani | March 3, 2016 | | 16609 Viewer | Category : PHP Laravel
READ MORE

Laravel 5 create and download zip file example using chumper/zipper composer package

Sometimes, we need to create file of our project directory and give to download that zip file to users. we are always prefer zip file because it is very safe and secure from virus. If you want to generate zip file and donwload that file in your laravel 5 application then you do it easily using chumper/zipper composer package. In this post i give you example to create zip file and donwload from scratch. So first we have to follow bellow step for install package. First fire following command on your terminal. <strong>Installation Package</strong> <pre>composer require chumper/zipper</pre> After.....

By Hardik Savani | May 10, 2016 | | 16563 Viewer | Category : Laravel
READ MORE

Simple Add remove input fields dynamically using jquery with Bootstrap

In this tutorial, I am going to show you how to add remove input fields dynamically in your form using jquery. In this simple example, i give you to add multiple input fields with remove button that way you can remove field if you don't require. In this example i use bootstrap also because layout become pretty good. In this example, Simply i added two click event of jquery as listed bellow: <strong>1.add-more Class:</strong> On ".add-more" class that way we can write jquery append code. <strong>2.remove Class:</strong> On ".remove" class that way we can remove input field. I also added "copy.....

By Hardik Savani | August 19, 2016 | | 16506 Viewer | Category : PHP Javascript Bootstrap jQuery
READ MORE

Laravel 5 clear cache from route, view, config and all cache data from application

In this post i would like to share my experience and solution. when i was working on my laravel e commerce website with gitlab. I was fetching one issue suddenly my view cache with error during development. i did try lot to refresh and something other but i can't see any more change in my view, but at last I did resolve my problem using laravel command so, let's see i added several command for clear cache from view, route, confir etc. <strong class="example">Reoptimized class loader:</strong> <pre class="prettyprint lang-php">php artisan optimize</pre> <strong class="example">Clear Cache fac.....

By Hardik Savani | March 22, 2016 | | 15434 Viewer | Category : Laravel
READ MORE

Laravel 5 - Implementing datatables tutorial using yajra package

Today, I am going to share with you How to use datatables in your laravel 5 application. In this example you can datatables using yajra/laravel-datatables-oracle package. Datatables provides us quick search, pagination, ordering, sorting and etc. Datatables is basically jQuery plugins that allows you to add advanced interaction controls to your HTML tables data. Datatables also provide ajax for data searching and getting. you can give very quick layout for search and sorting using Datatables. You can also implement Datatables in your laravel application. You have to just follow few step for .....

By Hardik Savani | December 4, 2016 | | 15311 Viewer | Category : PHP Laravel Bootstrap
READ MORE

Laravel 5 mailchimp api integration from scratch with example

In this post you can learn how to integrate mailchimp api in your laravel 5 application. Mailchimp provides manage subscribers, send emails using campaign and also track email results etc. Mailchimp through you can track how much subscribers open email and read. If you have newsletter website or any tutorial website then you should add email subscriber function that way we can inform through email. I use skovmand/mailchimp-laravel laravel package for mailchimp api in laravel 5 application. In this example you can subscriber email and send campaign from laravel application from scratch, so if .....

By Hardik Savani | June 9, 2016 | | 14894 Viewer | Category : Laravel Mailchimp API
READ MORE


    Laravel 5 - Bootstrap Admin Theme Integration example from scratch

    Laravel 5 - Bootstrap Admin Theme Integration example from scratch

    Open Post

    How to get current month records in Laravel 5?

    How to get current month records in Laravel 5?

    Open Post

    Laravel 5 - How to get difference of time in minutes?

    Laravel 5 - How to get difference of time in minutes?

    Open Post

    Laravel 5 - Full Text Search Example using Scout and Algolia Packages

    Laravel 5 - Full Text Search Example using Scout and Algolia Packages

    Open Post

    Laravel 5.3 new feature and update - $loop variable

    Laravel 5.3 new feature and update - $loop variable

    Open Post

    Jquery email autocomplete example with demo using jquery.email-autocomplete.min.js

    Jquery email autocomplete example with demo using jquery.email-autocomplete.min.js

    Open Post