HDTuto.com

Laravel


Laravel 5 - Database seeder with insert sample user data example

This Wednesday, i will let you know how to create seeder file and why we require to create seed file in laravel. you will learn to create database seeder in your laravel application by following this article. here we will use php artisan make:seeder command for create and php artisan db:seed command for run seeder. If you thinking why we require to create seed in laravel 5 application then i will.....

Posted On January 17, 2018

Laravel Ajax Request using X-editable bootstrap Plugin Example

Hi Developer, In this tutorial, i will let you know how to save data using ajax request with X-editable bootstrap plugin in laravel 5 application. you can simple call ajax request with z-editable bootstrap and update data using ajax request. I was thinking to share something new thing with laravel 5 application and i used before X-editable bootstrap plugin. it's amazing for ajax. really nice layo.....

Posted On January 14, 2018

How to create events for created/updated/deleted model task in Laravel 5?

Here, i want to know you how to create Eloquent models events for creating, updating, deleting, retrieved, created, updated, saving, saved, deleted, restoring, restored in PHP Laravel 5. here i will show you simple and quick example for event fire on eloquent model method. Using this tutorial you will learn to create laravel event listener, also can set queue. Laravel introduce very unique and fa.....

Posted On January 10, 2018

PHP Laravel Ajax Form Submit Example

In this article, you will lern how to ajax form submit in Laravel 5 application. You can easily fire jquery ajax form submission on click event of button. So let's follow bellow tutorial for ajax form submit laravel. Here i will write very simple post ajax request example with pass csrf token in laravel 5.5 application. After end of the article you can assume, how simple run example request like .....

Posted On January 5, 2018

PHP Laravel select with join subquery example

Hi PHP Laravel Developer, Today, i will let you know how to use select with join subquery using Laravel eloquent. You will learn inner join or left join with select query in Laravel eloquent. Let's see example for laravel 5, laravel 5.1, laravel 5.2, laravel 5.3, laravel 5.4, laravel 5.5 eloquent select join query example. Here we will use DB::raw() with join() function of laravel 5 eloquent. In.....

Posted On January 4, 2018

Laravel select with count(*) using db raw example

Hi Guys, In this small article. i will let you know how to use select with count aggregate and group by using db raw in Laravel application. Here i gave you simple query example for join with count(*) as aggregate in select statement, i convert it into laravel db query builder. If you want to use count aggregate function in select statement then you require to use db::raw in eloquent select func.....

Posted On January 2, 2018

Laravel 5 Ajax Multiple Image Upload with Preview Example

In this article, i will let you know ajax multiple image upload with preview in laravel 5 application. You will simply implement laravel 5 jquery ajax multiple image upload with validation example. Just follow bellow full example for jquery ajax multiple image upload and preview in Laravel 5.5 application and also it support other laravel version. In this article, i will create two route with GET.....

Posted On December 31, 2017

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