Category : PHP



Laravel 5.5 custom validation rules example

As we know very well about, few days ago laravel 5.5 released and they introduce several feature. They also change method of create custom validation rules. So in this post i explain you how to create custom validation rules in laravel 5.5 application. Validation is a primary requirement of every project, without validation we can not release successful application or website. Because if you haven't implemented validation then you get wrong information from use input. Laravel provide there are several default validation rules like required, max, min, array, unique, digits, in, boolean, befor.....

By Hardik Savani | September 10, 2017 | | 11277 Viewer | Category : PHP
READ MORE

Please provide a valid cache path. laravel error fixed

Few days ago i clone my old project and then install composer. Then also i created .env file and make virtual host of my laravel 5.4 application. But i got following error. <strong>please provide a valid cache path.</strong> I again make composer update and also give permission to storage folder but nothing result. So i feel sad because i haven't seen this error before. I try to solve my way but can't do it. At last i found solution from google, I don't know but i make gitignore <strong class="path"> storage/framework</strong> so, what you have to do if you found this error. You have to cre.....

By Hardik Savani | September 7, 2017 | | 1126 Viewer | Category : PHP
READ MORE

Laravel 5.5 CRUD Example from scratch

In this tutorial i will shows how you can create basic crud(create, read, update and delete) module in laravel 5.5 application. Laravel is a popular open-source PHP MVC Framework with lots of advanced development features. Laravel released it's new version 5.5 as few days ago. If you are learner or beginner of crud example in laravel 5.5 application then you are a right place. It's always help to more understand or learn from crud application for beginner developer. Here, i will create insert, update, delete and view with pagination example of articles. You can simply create new article, vi.....

By Hardik Savani | September 3, 2017 | | 146211 Viewer | Category : PHP
READ MORE

Laravel 5 - Create Dummy Data using tinker factory

Hi, Friends Today we will learn how to generate dummy records in your database table using tinker factory of Laravel 5.5. As we know testing is very important part of any web development project. Sometime we may require to add hundreds records in your users table, OR maybe thousands of records. Also think about if you require to check pagination. then you have to add some records for testing. So what you will do it at that that moment, You will add manually thousands of records ? What you do ?. If you add manually thousands of records then it can be take more time. However, Laravel 5 have co.....

By Hardik Savani | August 31, 2017 | | 4878 Viewer | Category : PHP
READ MORE

Laravel 5 - Column sorting with pagination example from scratch

Hi, Guys i always try to find something new article for laravel developer so that can be help for his development. So Today i will share with you amazing tutorial of laravel sortable table example, you can can sort your table field with pagination. We will do it column sorting using kyslik/column-sortable composer package. As we much know, sorting is important to find quick and perfect data. If you want to get ascending date or descending date of creation users then you have to simple sort data and then get. So same way if you want for name, price, id etc. So here i will explain how to do it.....

By Hardik Savani | August 27, 2017 | | 23169 Viewer | Category : PHP
READ MORE

Laravel 5.5 New Feature - BladeIf Directive Example

Laravel 5.5 release their official documentation and they added several new features. In this post i will explain one new feature "BladeIf Directive" from the laravel 5.5 list. BladeIf is a one of the if condition but if you require many time same if condition then you don't need to write same code everywhere. You have to simple put code on one place and use every time name. For example if you have to check user is login or not and is admin then you will always write two condition with code. So we can just define one time and use their name on blade file. Here, bellow i will give you example.....

By Hardik Savani | August 24, 2017 | | 5493 Viewer | Category : PHP
READ MORE

PHP MySQL confirmation box before delete record using jquery ajax

Today, i will show you how to add confirm box before delete item in php. It's always necessary to confirm yes or no about that removing record. If we confirm before delete records it's safe to client that delete right records. So in this post i will show you how to add confirmation popup of jquery and remove item dynamically. Here, i have simple create "users" table and then list all users with table using bootstrap. Using bootstrap it looks better layout. So added delete button, when user will click on delete button confirm box open and ask to remove or not current item. after click on yes f.....

By Hardik Savani | August 21, 2017 | | 9868 Viewer | Category : PHP
READ MORE

Laravel 5.5 - Validation Data Return - New Feature

laravel released 5.5 version a few days ago and they also introduce several new feature. So in this post i will let you know one new feature, they provide new way to validation check using request() and validate(). In this post i will give you three way to check validation and store input data into variable. So let's simple see how we can check and return back to validation. so just check bellow way to check validation: <strong>Example 1:</strong> <pre class="prettyprint lang-php"> public function store() { $this->validate(request(), [ 'name' => 'required', 'email' => 'required|ema.....

By Hardik Savani | August 18, 2017 | | 4919 Viewer | Category : PHP
READ MORE

Simple PHP Ajax Form Validation Example from scratch

In this post, i would like to share useful jquery ajax form validation example from scratch. As we know todays, jquery become more popular and more powerful. So here i will show you server side php validation and we will check using jquery ajax request. I will give you very basic and simple example of bootstrap form with ajax validation in php, so it don't take much more time. Here, i will create PHP contact us form using html bootstrap framework. When you click on "Send Message" button it will fire ajax post request and check validation and display it as now on bellow preview. I will create .....

By Hardik Savani | August 10, 2017 | | 12528 Viewer | Category : PHP
READ MORE

Simple Tags System Example in Laravel 5

If you are writing article for your blog or your personal website then you must need to implement taggable system in your website. If you write article or post for food then you have to create tags like on foods name, foods type etc. You also maybe see on there are several blog or website available tags bellow the article. So if you want to add tags in your article and you are using laravel framework then you are on right place. In this post, i will give you example of how to generate tags system in laravel 5 application using rtconner/laravel-tagging composer package. here i will simple crea.....

By Hardik Savani | August 6, 2017 | | 17877 Viewer | Category : PHP
READ MORE

    Laravel 5 - Example of Database Seeder with insert sample data

    Laravel 5 - Example of Database Seeder with insert sample data

    Open Post

    AngularJS - convert comma separated string to array example

    AngularJS - convert comma separated string to array example

    Open Post

    How to add charts in Laravel 5 using Chart JS ?

    How to add charts in Laravel 5 using Chart JS ?

    Open Post

    Laravel 5 - Custom Helper Facade Class Example from scratch

    Laravel 5 - Custom Helper Facade Class Example from scratch

    Open Post

    How to use groupby having with DB::raw in Laravel Query Builder?

    How to use groupby having with DB::raw in Laravel Query Builder?

    Open Post

    Codeigniter 3 - Basic CRUD application with MySQL Example with Demo

    Codeigniter 3 - Basic CRUD application with MySQL Example with Demo

    Open Post