Declaring Namespaces
A namespace is declared at the top of a PHP file using the namespace keyword.
Example
Section titled “Example”namespace App\Models;
class Product { public string $name;}Every class inside this file belongs to the App\Models namespace.