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 |
Explain the directory structure of laravel 5.6.
What is controller in laravel?
Tell me what is laravel eloquent?
How to work with Database in Laravel ?
Explain closures in laravel?
How to retrive current environment in laravel?
How to enable query log in laravel 5?
What is database migration used in laravel 5? Explain
List site types supported by homestead?
Command to connect vagrant via ssh?
What is dd () in laravel?
What is composer in laravel php?