How to Declaration of namespace ?
Answer / amit khanna
Namespaces can be defined as a class of elements in which each element has a unique name to that associated class. It may be shared with elements in other classes.
Syntax : use <namespace-name>;
The use keyword allows the developers to shorten the namespace. The default namespace used in Laravel is app
You can create a user defined namespace by using artisan command as shown below
php artisan app:name Manger
| Is This Answer Correct ? | 0 Yes | 0 No |
What is crud generator?
What is observer in laravel?
What is laravel route?
Is laravel an mvc?
What is the best package to set up billing and subscription with stripe and braintree?
What does double quotation mean?
What is laravel echo?
How to create model controller and migration in a single artisan command in laravel?
What is laravel service container?
How facades are different from dependency injection?
What is trait in laravel?
What are helper functions and name 10 with their purposes?