PHP8 Attributes

PHP8 Attributes

Instead of PHPDoc annotations, you can now use structured metadata with PHP’s native syntax. That’s it!. Please share your thoughts or suggestions in the comments below.

PHP8 Union types

PHP8 Union types

PHP 8 Nullsafe operator Instead of PHPDoc annotations for a combination of types, you can use native union type declarations that are validated at runtime. That’s it!. Please share your thoughts or suggestions in the comments below.

PHP8 Nullsafe operator

PHP8 Nullsafe operator

Instead of null check conditions, you can now use a chain of calls with the new nullsafe operator. When the evaluation of one element in the chain fails, the execution of the entire chain aborts and the entire chain evaluates to null. That’s it!. Please share your thoughts or suggestions in the comments below.

What’s new in PHP 8

What’s new in PHP 8

It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency. Here is the list of main new features: Union Types Named Arguments Match Expressions Attributes Constructor Property Promotion Nullsafe Operator Weak Maps Just InRead more about What’s new in PHP 8[…]

How to Check Laravel Version by CLI and File

How to Check Laravel Version by CLI and File

In this article, We’ll see how to check the laravel version using CLI and file. Method 1: Check Laravel Version using CLI / Command Prompt Method 2: Check Laravel Version using file Open the below file in any editor. /vendor/laravel/framework/src/Illuminate/Foundation/Application.php In this file you will find the following That’s it!. Please share your thoughts orRead more about How to Check Laravel Version by CLI and File[…]