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 is a laravel collection?
What is facade and how it is used in laravel?
How can you enable query log in laravel?
What is meant by Implicit Controllers
What is csrf protection token?
What is bearer token?
How to remove /public from url in laravel?
What is a session in laravel?
what are Important Points contracts in Laravel ?
What is auth :: routes ();?
What are Global Middleware and Route Middleware ?
Explain dependency injection?
How to access laravel project from another computer?
What is the service container in laravel?
How to register a service provider via composer in laravel?