HDTuto.com

PHP


Laravel db raw with sum of column example

I will let you know how to use mysql sum function with select statement in laravel 5. we will use db raw with sum function in laravel. In this article i will leave simple example of laravel select sum group by with db::raw. If you require to use sql sum() in select statement then you are a right place. If you have to write simple sql query then it is a very simple to write but if you need to use .....

Posted On December 27, 2017

How to detect web crawler in Laravel ?

In this article, i will let you know about hot to detect we crawler from bot user agents i your laravel 5 application. this tutorial will help you to implement web scraping in laravel 5 app. we will use jaybizzle/laravel-crawler-detect composer package for detect crawler. So just follow bellow two things for detect we crawler. here first we will install package and another thing i will give you e.....

Posted On December 26, 2017

PHP Laravel Set Custom Validation Error Messages Example

There are a three way to change validation error messages in laravel 5 application. Laravel provide it's own messages, but if we want to change the default laravel app validation error messages. After this full of example you will learn to set custom validation error messages. So let's follow bellow three method to set custom error validation. <strong>1: Using Language File</strong> <strong>2: D.....

Posted On December 22, 2017

Laravel 5.5 - Import Extract zip file using chumper/zipper package

Here, in this tutorial i will share with you example of import zip file data with extract zip file and download files in folder in laravel 5.5 application. in this example we require to use chumper/zipper composer package for import extract zip file. let's see bellow example: <strong class="step-up">Install chumper/zipper Composer Package:</strong> first thing is to install composer package in o.....

Posted On December 21, 2017

Laravel 5 - username custom validation example

Hi Friends, In this tutorial, i will let you know how to create custom validation for username in laravel 5.5 application. here i will show you controller method and also set custom validation message. So we may need to add custom validation for username or you have field that no need to add space like without white space, enter value. In this tutorial i will show you simple controller function. .....

Posted On December 19, 2017

PHP Laravel 5.5 - Bootstrap Admin Theme Integration example from scratch

Today In this tutorial, i am going to share with you how to install bootstrap admin template in Laravel 5 application from scratch. In this example you can lean how to install theme in Laravel 5 different version like 5.0, 5.1, 5.2, 5.3 and 5.4. In this example, we are going to integrate SB Admin theme into laravel application. This example through you can easily understand how to integrate othe.....

Posted On December 15, 2017

Laravel 5.5 create custom facade example from scratch

In this article, here i will give you step by step guide to create a custom facade in Laravel 5.5 application. You can also learn how to create custom service provider and custom aliases for your class in laravel 5. Ok So, We may need to create custom facade for creating general helper, some method that always use in whole application like here in example, i created getUserImage() method for get.....

Posted On December 8, 2017

PHP Laravel 5.5 - import export data into excel and csv using maatwebsite

Hi Guys, In this article, i will let you know how to import and export excel or csv file in your laravel 5.5 application. Here i will show you full example step by step to import excel file to database and export from database and give it to download. We will use maatwebsite composer package for import export data into excel and csv file. maatwebsite package is popular for generate csv file and.....

Posted On December 3, 2017

Codeigniter 3 - call to undefined function site_url() Fixed

If you are fetching issue with undefined function site_url() in your codeigniter 3 application then you have to load "url" helper on auto load. I wanted to share this error, it will comes when you install fresh codeigniter 3 application and try to run, you will find this error undefined function site_url() when you use site_url() helper. So, if you used site_url() helper then you need to load "u.....

Posted On November 23, 2017

PHP Laravel 5 Rating System Example from Scratch

Hi Friends, You add star rating system in your laravel 5 application by using Laravel Rateable composer package with bootstrap-star-rating jquery plugin for review. Here in this article i will explain how to implement star rating system in your php laravel framework project step by step tutorial. We always would like to see our website or product popularity. If you see in there are many website, .....

Posted On November 22, 2017