Laravel 8 Constructor And Method Dependency Injection Example

In Laravel, dependency injection is frequently used. Even with access, we mainly inject it. When you try to inject an object into your class, Container inspects your constructor method using the Refle...

PHP Data Types

PHP variables can have values of a variety of data kinds, from straightforward string and numeric types to more complicated data types like arrays and objects.

Laravel - create model, controller and migration in single artisan command

You can make easily model,controller or migration with small amount of command (Terminal) in Laravel

PHP - Inherited Method Overritten

Inherited methods can be overridden by redefining the methods (use the same name) in the child class.

PHP | number_format() Function

A number containing grouped thousands can be formatted using the built-in PHP function number_format(). If it is successful, it returns the formatted number; if it is unsuccessful, it displays E WARNI...

How to make associative array from pluck in Laravel

In this article, we will learn how to make an associative array from pluck in Laravel. To extract certain values from a collection, utilize the Laravel Collections method pluck().

How to limit the length of a string in Laravel

The length of a string can be limited in a variety of ways. You might do it with PHP, JavaScript, or CSS, for instance. Moreover, Laravel offers a helpful aid to make this simple. We'll use Illuminate...

How to redirect HTTP to HTTPS Using htaccess

Insecure warnings are now visible in Chrome and Firefox on websites lacking SSL certificates. Visitors will see your website as insecure if SSL is not used. Hence, employing an SSL-encrypted connectio...

Laravel Pluck() : Laravel Collection Method to extract values

To extract certain values from a collection, utilize the Laravel Collections method pluck().

PHP - Overriding Inherited Methods

Protected properties or methods can be accessible both within the class and by classes descended from it, as we learnt in the previous chapter. Just what does that imply?