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
Explain how to upgrade valet to valet 2.0?
Difference between Authentication and Authorization ?
What are the Severity Levels in Laravel ?
What is mvc framework?
What is facade and how it is used in laravel?
Does laravel prevent sql injection?
How to use where null and where not null eloquent query in laravel?
Explain how to create a controller in laravel?
Tell me how to use insert statement in laravel?
Explain laravel echo.
How do I perform dependency injection in laravel?
What are the Advantages of Laravel ?
what is Blade ?
What is routing and how, and what are the different ways to write it?
What is the best backend for react?