HDTuto.com

PHP


Fixed - "continue" targeting switch is equivalent to "break". Did you mean to use " continue 2"?

we will resolve ErrorException error "continue" targeting switch is equivalent to "break" in php laravel on my ubuntu. we can reinstall composer to fixed continue targeting switch is equivalent to break issue. When i was working on my ubuntu 14 and i update into ubuntu 16 at that time my php is also updated and it becomes 7.3. so when i install my laravel project and doing composer install i got .....

Posted On July 14, 2019

Codeigniter Upload Image and Compress

In this artical, i would like to show you how to compress image before upload in codeigniter application. we will reduce size and resize of image in codeigniter. we can compress image like png, jpg, jpeg, gif etc. This example will help you to reduce size of image file like, if user uploaded 2mb file then it will compress in 400kb or something as you want less compress. You have to just follow .....

Posted On June 24, 2019

Codeigniter multiple file upload with example

I will let you know multiple image upload in codeigniter with simple example. you can learn php codeigniter upload multiple images and store to database. we will use upload library for upload multiple files in codeigniter. We almost need to implement multiple images or files feature in our project. so you can simply understand and you can implement your existing project with multiple file uploa.....

Posted On June 16, 2019

Laravel detect mobile or desktop using jenssegers/agent example

In this artical, i will let you know how to detect mobile or desktop browser in laravel 5 application. we will use jenssegers/agent package for detect device. we can easily detect device mobile or tablet or desktop. jessenger ajent plugin provide method to get all user agent values with their pre define function by package. they provide function like isMobile(), isTablet(), isDesktop() and device.....

Posted On May 12, 2019

Yajra Datatables Laravel 5.8 Example

we will learn how to install yajra datatables in laravel 5.8 application. datatables is a javascript library and that provide search, pagination, ordering, sorting and etc. we will use yajra composer package for datatables in laravel 5.8 project. yajra provide method to send data and filter using ajax. so let's follow this article and learn how to install yajra datatables. You have to just follo.....

Posted On April 6, 2019

Ajax Pagination in Laravel 5.8

In this article, you will learn how to create ajax pagination with laravel 5.8 project. i will describe step by step tutorial of laravel 5.8 ajax pagination. as we know jquery is more use in live project. so better is if you use ajax with your project then it will run smooth. just see this post and do it js ajax pagination in laravel 5.8 project. In this example, we simply create "items" table .....

Posted On April 5, 2019

Laravel 5.8 Get Logged in User Details

Today's leading topic is laravel 5.8 get current user details using auth. i will show you how to get current logged in user id, name, email, created_at, role etc using auth() helper or Auth facade class. we can easily get auth user data using auth helper in laravel 5.8 application. we almost need to get current logged in user data because we need to some restrict to pages or get only login user .....

Posted On April 2, 2019

Ajax crud operations in Laravel 5.8 with Modal & Pagination

Today, i will show you how to create ajax crud module with bootstrap modal & pagination in laravel 5.8. we can build ajax create read update and delete records in laravel 5.8. we will use yajra datatable to list a data on index page with sorting, pagination and searching. I will create product module with jquery ajax crud operation in laravel 5.8. you can follow this tutorial and easily make ajax.....

Posted On March 30, 2019

Laravel 5.8 specified key was too long error - Solved

Just tomorrow i was installing laravel 5.8 and run migration at that time i got specified key was too long error in migration. you can see it was same error bellow message: "SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))" Than i checked with user table migration but over.....

Posted On March 26, 2019

Image Upload Tutorial with Laravel 5.8

In this tutorial, Laravel 5.8 image upload with validation is a topic. we will learn how to upload and display image in laravel 5.8. i will show you step by step to create image upload example with laravel 5.8. we can simply add image upload validation like image, mimes, max file upload etc, So you can easily understand and you it simply. In this example, we will create two routes one for get me.....

Posted On March 19, 2019

Blog Search