Tag PHP found of 100 results

Update Record Without Updating Timestamp in Laravel?

Update Record Without Updating Timestamp in Laravel?

By default Laravel automatically invoke an attribute field to update current timestamp whenever a record have some change or modified via model. The field updated_at will always refresh update with new timestamp when user submit modified data. Sometime this field might be annoyed for sorting so we don't want to update new timestamp whenever we made some changed to the record...

Sovary March 22, 2023 416
#Laravel  #PHP  #Laravel 9 
How to Generate UUIDs in Laravel

How to Generate UUIDs in Laravel

Today we will learn about how to generate UUIDs with or without third party package. I will share best practise to implement UUIDs. For new beginner learner who have no idea about UUID, we will explain from scratch so you don't have to concern about this topic...

Sovary February 26, 2023 459
#Laravel  #PHP  #Laravel 9 
Laravel Interview Questions and Answers 2023

Laravel Interview Questions and Answers 2023

For fresh graduate students may seeking for employment in different personal skill set that they have. You have full of skill or less skill in Laravel you may asked by interviewer in order to get new job. Some of below examples may help you to be well prepare answer to the question...

Sovary February 4, 2023 491
#Laravel  #PHP 
How to Merge Eloquent Collections in Laravel?

How to Merge Eloquent Collections in Laravel?

In this article, we will see how to merge two collections in laravel 8 or laravel 9. The Illuminate\Support\Collection class provides a fluent, convenient wrapper for working with arrays of data. In this example, we will merge two..

Sovary February 3, 2023 640
#Laravel  #PHP  #Laravel Collections 
How to Check Database Table Exists or Not in Laravel?

How to Check Database Table Exists or Not in Laravel?

If you want to build an web app for user to install just like wordpress only click on UI you may want to check the existing table in you database, or before doing something else with the table. You can check by using schema builder method hasTable() which is accepted table's name as argument...

Sovary January 12, 2023 368
#Laravel  #PHP 
Laravel - How to Use Carbon in Blade Controller and Model File

Laravel - How to Use Carbon in Blade Controller and Model File

Today tutorial we will show you how to use Carbon in template Blade Laravel. We provide example of using Carbon Laravel in view file. We will show how to use carbon in Laravel, how to use carbon in Laravel blade, how to use carbon in Laravel controller, how to use carbon in Laravel model, Laravel use carbon in blade, using carbon Laravel with example..

Sovary January 12, 2023 426
#Laravel  #PHP  #Carbon Laravel 
Insert new Item Element in Laravel Collections Object

Insert new Item Element in Laravel Collections Object

Today we will learn how to add items at the end to a collection in laravel, it is easy to use a function in laravel collection add items at the end. In below example you can add elements at the end of a collection, how to add values to a collection at the end in laravel,laravel collection add items at the end example...

Sovary December 9, 2022 392
#Laravel  #PHP  #Laravel 9  #Laravel Collections 
Count Duplicated Items in Laravel Collections Example

Count Duplicated Items in Laravel Collections Example

We will show you how to count duplicate element in Laravel Collections. The below example will help you to count element which is have repeat items in collections. We can count in array or count by specific key item using Laravel count collection will help to count data repeatedly...

Sovary November 30, 2022 386
#Laravel  #PHP  #Laravel 9  #Laravel Collections 
Laravel Collection Search Item by Key Example

Laravel Collection Search Item by Key Example

In Laravel collections load many items, to find an element is too hard, so today I will show you how to use key item search the value in Laravel collection...

Sovary November 29, 2022 345
#Laravel  #PHP  #Laravel 9  #Laravel Collections 
Remove NULL or Empty Array from Laravel Resource Collection

Remove NULL or Empty Array from Laravel Resource Collection

This article will show you how to remove empty or null item from a collection using Laravel. In this tutorial, I'll teach you how to delete an empty element from a collection using Laravel. If you're looking for an example of how to delete empty values from a collection in Laravel, you've come to the..

Sovary November 23, 2022 416
#Laravel  #PHP  #Laravel 9  #Laravel Collections