How to Remove Last Characters of a String in PHP?

How to Remove Last Characters of a String in PHP?

I will show short tip how to remove last characters of string in PHP by using simple function. This guide will help you to delete last amount of characters of a text. For example we have a sentence and we want to remove last 5 characters of the sentence then we will use function in example below...

Sovary July 16, 2023 242
#PHP 
How to Remove Column from Existing Table in Laravel Migration?

How to Remove Column from Existing Table in Laravel Migration?

In this quick example, let's see Laravel migration remove column. This post will give you simple example of how to drop column in Laravel migration. I would like to show you remove column Laravel migration. We will use drop fields Laravel migration...

Sovary March 25, 2023 554
#Laravel  #PHP  #Laravel 9 
How to Print Last Executed Query in Laravel?

How to Print Last Executed Query in Laravel?

Let's look at a brief example using the Laravel 9 Eloquent Get Query Log. In this tutorial, we'll show you how to get a simple SQL query in Laravel . You'll find a straightforward example of the Laravel 9 print last SQL query in this post...

Sovary March 25, 2023 349
#Laravel  #PHP  #Laravel 9  #Query Builder 
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 419
#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 462
#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 498
#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 647
#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 372
#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 431
#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 398
#Laravel  #PHP  #Laravel 9  #Laravel Collections