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 namespace in php laravel?
What are the difference between laravel 5 & laravel 4?
Explain Laravel - Event Handling ?
Tell me how do you do dependency injection in laravel?
Name some inbuilt authentication controllers of laravel.
What is composer tool?
Explain some benefits of laravel over other php frameworks.
What do you know about csrf token in laravel?
Explain binding a singleton?
How to Create Creating a Cookie in Laravel ?
What is register method?
Is laravel backend?
What is the role of service provider?
How can you reduce memory usage in laravel?
How to get data between two dates with query in laravel?