M
MeshWorld.
Back to Tags
Topic View

#Laravel.

21 posts filed under this topic.

Laravel 3 min read

Nested Eager Loading in Laravel: Optimize Your Database Queries

Discover how to effectively implement nested eager loading in Laravel Eloquent. This guide covers definitions, benefits, practical examples, and advanced usage to optimize your database interactions and improve application performance.

Vishnu Damwala
Laravel 2 min read

How to update a record without updating timestamp in Laravel

In this article, we will see How to update record without saving or updating timestamp fields either `updated_at` or any other custom field. Laravel provides us functionality to handle timestamp update while saving model. Assigning `false` to `timestamps` property of model during model save, prevents auto update of timestamp fields.

Vishnu Damwala
PHP 3 min read

PHP Interview Questions

This tutorial explains with syntax and an example of how to flatten a multi-dimensional array based on the value of depth specified in the Laravel framework.

Vishnu Damwala
PHP 3 min read

Get Last Array Element in PHP and Laravel

This article, guide you through the retrieval of last array element in different ways in Laravel and also in PHP.

Vishnu Damwala
PHP 1 min read

Create collection instance for given array in Laravel

This tutorial explains with syntax and an example of how to create a collection instance from provided array with Laravel collect() helper method in the framework.

Vishnu Damwala
Laravel 2 min read

Get Last 30 Days Records in Laravel

This article, guide you through the usage of Carbon for retrieving records for last 30 days in Laravel.

Vishnu Damwala
Laravel 1 min read

Laravel's Eloquent whereTime() filtering method

This article, guide you through the usage of Laravel's Eloquent `whereTime()` method. It is used to match a field value against a specific time.

Vishnu Damwala
Laravel 1 min read

Laravel's Eloquent whereDate() filtering method

This article, guide you through the usage of Laravel's Eloquent `whereDate()` method. It is used to match a field value against a specific date.

Vishnu Damwala
Laravel 2 min read

Laravel's firstOrCreate Model Method

In this article, we will see Laravel's `firstOrCreate()` model method and how it provides you first instance from table if exists or create new table records if does not exists. You don't need to explicitly save like `firstOrNew()`.

Vishnu Damwala
Laravel 2 min read

Laravel's firstOrNew Model Method

In this article, we will see Laravel's `firstOrNew()` model method and how it is useful. It provides you first instance from table if exists or create new model instance. You need to explicitly save model instance.

Vishnu Damwala
PHP 3 min read

Form Validation For Allowing Only Past Date Or Date Before Today

This tutorial explains with syntax and an example of how to flatten a multi-dimensional array based on the value of depth specified in the Laravel framework.

Vishnu Damwala
PHP 3 min read

Flatten Array using Arr::flatten() in Laravel

This tutorial explains with syntax and an example of how to flatten a multi-dimensional array based on the value of depth specified in the Laravel framework.

Vishnu Damwala
PHP 2 min read

How To Move Record From One Table To Another In Laravel

This tutorial explains with an example of how to move a record from one database table to another in PHP Laravel framework.

Vishnu Damwala
PHP 2 min read

How To remove elements from array collection In Laravel

This tutorial explains with syntax and example how we can move records from one table to another collection in PHP Laravel framework

Vishnu Damwala
PHP 2 min read

How To Drop Composite Indexes With Migration In Laravel

This tutorial explains how to create and drop composite keys with migration in PHP Laravel framework with syntax and example

Vishnu Damwala
PHP 2 min read

How To Create Composite Indexes With Migration In Laravel

This tutorial explains how to create composite keys with migration in PHP Laravel framework with syntax and example

Vishnu Damwala
PHP 2 min read

Ways to declare unsigned columns in the Laravel migrations

Laravel allows developers to declare unsigned columns in different ways. As it's required to handle the relationship between tables by just associating models with each other.

Vishnu Damwala
PHP 2 min read

How to bind URL parameter to model in Laravel

How to bind URL parameter to model in Laravel

Vishnu Damwala
PHP 2 min read

How To Create Indexes With Migration In Laravel

How To Create Indexes With Migration In Laravel

Vishnu Damwala
Laravel 1 min read

How To Change Model Default Timestamps Column Names In Laravel

How To Change Model Default Timestamps Column Names In Laravel

Vishnu Damwala
PHP 2 min read

Get Array of IDs from Eloquent Collection in Laravel

Get an array of ids from Eloquent collection in Laravel using pluck() and modelKeys() function

Vishnu Damwala