Tag : Laravel 6



How To Roll back Specific Migration In Laravel

How To Roll back Specific Migration In Laravel

In this article, we will explore the process of rolling back specific migrations in Laravel, focusing on Laravel versions 6, 7, 8, 9, and 10. We will delve into how to revert or revoke the last migration, and you'll also learn how to roll back all migrations using command-line tools.

<...

How To Get Last 30 Days Record In Laravel 8

How To Get Last 30 Days Record In Laravel 8

in this tutorial, we see how to get last 30 days record in laravel 8. You can simply get the last 30 days record using laravel 8 eloquent model. In PHP, you can use INTERVAL to get the last 30 days record from the database. Also, we can see how to get the last 1 month's da...

How To Get Last 7 Days Record In Laravel 8

How To Get Last 7 Days Record In Laravel 8

In this example, we will see how to get the last 7 days record in laravel 8. You can simply get the last 7 days record using laravel 8 eloquent model. In PHP, you can use INTERVAL to get the last 7 days record from the database table. Also, we can see how to get last week's records in la...

Laravel 8 Class NumberFormatter Not Found

Laravel 8 Class NumberFormatter Not Found

In this example we will see example of laravel 8 class numberformatter not found. For numberformatter we need PHP 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0 and I have PHP 7 and intl still face numberformatter not found in laravel.

 class numberformatter not found in lara...

How To Create Middleware For XSS Protection In Laravel 8

How To Create Middleware For XSS Protection In Laravel 8

In this tutorial we will see how to create middleware for xss protection in laravel 8. Cross-site scripting is a type of security vulnerability that can be found in some web applications. XSS attacks enable attackers to inject client-side scripts into web pages viewed by other users.

Laravel 8 Image Upload Validation

Laravel 8 Image Upload Validation

In tutorial we will see how to validate laravel 8 image upload validation. In laravel 7/8 you can validate image using the file under validation must be an image (jpg, jpeg, png, bmp, gif, svg, or webp). Also you can required image validation, size of image, dimension of image etc.

In i...

Laravel 8 Datatables Keeping Selected Page Number

Laravel 8 Datatables Keeping Selected Page Number

In this tutorial we will see laravel 8 datatables keeping selected page number after callback. In datatable page number is not save when you reload page so, we need to keep or get current page in datatable after page reload to save state of datatable. 

So, we need this ki...

Laravel 8 Order By Query Example

Laravel 8 Order By Query Example

In this example we will see laravel 8 order by query example. how to use order by in laravel 8.The orderBy method allows you to sort the results of the query by a given column. The first argument accepted by the orderBy method should be the colum...

Laravel 8 Group By Query Example

Laravel 8 Group By Query Example

In this example we will see laravel 8 group by query example. how to use group by in laravel 8. As you might expect, the groupBy and having methods may be used to group the query results. learn how to create a collection of data using Larave...

Laravel 8 Left Join Query Example

Laravel 8 Left Join Query Example

In this tutorial I will give you laravel 8 left join query example. laravel left join eloquent returns all rows from the left table, even if there are no matches in the right table, The result is NULL from the right side. We will also see query of laravel left join with groupBy(). If you wou...

Recommended Post
Featured Post
How to Get Random Record in Laravel 10
How to Get Random Record in La...

Here you will learn how to get random records from DB in laravel using the inRandomOrder() method. Explore an...

Read More

Nov-10-2023

How To Count Days Excluding Weekends And Holidays In Laravel 9
How To Count Days Excluding We...

In this article, we will see how to count days excluding weekends and holidays in laravel 9. Here, we will learn to...

Read More

Jan-24-2023

Know About MilesWeb’s WordPress Hosting Plans
Know About MilesWeb’s WordPres...

Want to make your WordPress site online? But for this, you will need to opt-in for a managed WordPress hosting provider....

Read More

Apr-09-2022

Change Text Color Based On Background Color Using Javascript
Change Text Color Based On Bac...

In this article, we will see a change text color based on background color using javascript. Sometimes we have requ...

Read More

Dec-25-2020