Laravel Popular Post


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 | | 3810 Viewer | Category : Laravel
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 | | 3800 Viewer | Category : Laravel
READ MORE

How to create a text file for JSON and file download in Laravel 5?

If you want create your own text file, html file, css file, php file, json file etc in Laravel. then we do not need to use any PHP library or Class because Laravel Framwork Provide its own "File" Facade. File Class through you can create your own html file, txt file, php file etc as you want. File Facade Class also provide several function like you can create file, remove file, update file etc. now i am giving you example of how to create json file in Laravel. you also want to download file that you created now, i mean you want to give download file, then you can also give download that file .....

By Hardik Savani | January 6, 2016 | | 3733 Viewer | Category : Laravel
READ MORE

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

I think we should use captcha code on our registration form 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 BotDetect package library for generate captcha image and using their validation. BotDetect is very popular library and very customize library. they provide several ui design for captcha code and also how much character do you want?, you can set all the thing using this package. In this post i give y.....

By Hardik Savani | May 5, 2016 | | 3720 Viewer | Category : Laravel
READ MORE

Laravel 5 - category treeview hierarchical structure example with demo

Today, I am going to share with you how to create dynamic category tree view structure in Laravel 5 application using jquery. We sometime require to make tree view structure for category and subcategory. In this tutorial i simple create "categories" table and manage end level of parents and child category with nested tree view structure in Laravel application. I use jquery for make tree view layout and child relationship with category model for hierarchical data. I also add form for create new category in tree view. If you are new in laravel then also you can do it simple and also simply cus.....

By Hardik Savani | November 9, 2016 | | 3713 Viewer | Category : Laravel
READ MORE

How to get Ip Address in Laravel 5?

If you are work on laravel 5 application and you require to get client ip address then you can get easy. you don't need to use $_SERVER variable like native PHP, but laravel 5 provide Request facade. you can fetch easy using following example: <strong class="example">Example</strong> <pre class="prettyprint php"> public function ImpressionCount(Request $request) { $input['ip'] = $request->ip(); print($input); } </pre>

By Hardik Savani | March 29, 2016 | | 3630 Viewer | Category : Laravel
READ MORE

How to use elasticsearch from scratch in laravel 5?

When i was working on my ecommerce website on laravel, i was need to apply search engine for my website. I was confused and thinking what i have to use, but my senior suggested to me elasticsearch for search engine. But i had no experience elasticsearch. I need to learn from starting but i found how to install elasticsearch and use in our laravel application. Why we choose elasticsearch for search engine because elasticsearch provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and JSON documents. So, in this example i going to give you full example f.....

By Hardik Savani | June 16, 2016 | | 3619 Viewer | Category : Laravel
READ MORE

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

Today, I am going to give example source code of How to implement full text search in your laravel 5.3 application using scout and algolia. Laravel 5.3 provide us several new feature and introduce new packages. Laravel 5.3 provide Scout Package for full text search from your Model. If you require to add full text search function in your laravel application then you have to choose scout package for to do. In this example i going to explain step by step, so you can simple understand and use it in your laravel project. In this tutorial i give from scratch so let's follow simple few step and imp.....

By Hardik Savani | October 16, 2016 | | 3401 Viewer | Category : Laravel
READ MORE

Laravel 5 Localization(trans helper) tutorial example

First Laravel 5 introduce localization for laravel application. Localization is very pretty intrsting topic added on laravel 5. Localization through we can manage multiple language message. i mean you can manage multiple languages within your application. for example you have one title like "Home Page", this is static title and now it is in english, but you also manage other language like if this site open in spanish then name will like : "Página de inicio". <img width="100%" src="/upload/Laravel-Localization-Tutorial.png" alt="Laravel-Localization-Tutorial.png" style="border:2px solid red".....

By Hardik Savani | April 9, 2016 | | 3390 Viewer | Category : Laravel
READ MORE

Laravel 5 manual pagination with array example

If you neeed to create custom pagination of your array, you can learn from this post. basically we are doing pagination with model or DB facade like "User::paginate(10)" OR "DB::table('users')->paginate(10)". But now if you have new array and you want to make pagination on your array then you can also give using "LengthAwarePaginator" class see following example: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> public function myData($userid) { $data = static::get(); <br/> $result = []; if(!empty($data)){ foreach ($data as $key => $value) { .....

By Hardik Savani | March 21, 2016 | | 3299 Viewer | Category : Laravel
READ MORE


    Bootstrap - Jquery multiple select with checkboxes example using bootstrap-multiselect.js plugin

    Bootstrap - Jquery multiple select with checkboxes example using bootstrap-multiselect.js plugin

    Open Post

    Jquery highlight search text in div using highlight JS with example

    Jquery highlight search text in div using highlight JS with 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

    Bootstrap form validation example with demo using validator.js plugin

    Bootstrap form validation example with demo using validator.js plugin

    Open Post

    Bootstrap - maxlength validation with count remaining character example

    Bootstrap - maxlength validation with count remaining character example

    Open Post

    CRUD (Create Read Update Delete) Example in Laravel 5.2 from Scratch

    CRUD (Create Read Update Delete) Example in Laravel 5.2 from Scratch

    Open Post