Answer Posted / 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 |
Post New Answer View All Answers
What version of laravel do you generally use?
What is trait in laravel?
Explain some benefits of laravel over other php frameworks.
what is meant by Global Middleware and Route Middleware ?
Explain how to register a service provider via composer in laravel?
Tell me how do I see all of the routes that are defined?
What are the default ports that are forwarded to your homestead environment?
What are seeds in laravel?
What is eloquent orm?
What is active record in laravel?
What is laravel api?
What are some use valet commands?
What do you mean by laravel dusk?
What are terminable middlewares?
What is the role of service provider?