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
How to get current environment in laravel?
Define laravel guard.
What do you mean by terminable middleware?
How to get configuration values in laravel?
What service provider’s register method does?
How will you describe bundles in laravel?
What are system requirement for laravel 5.0?
Please write some additional where clauses in laravel?
How to get requested path in laravel?
Explain collections in laravel.
How to use where null and where not null eloquent query in laravel?
Explain the events in laravel?
Explain binding primitives?
Do you know what developed the laravel?
Explain web.php route.