How to Declaration of namespace ?
Answer / 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 |
Tell me what is service providers?
What is csrf token in laravel?
What do you mean by reverse routing in laravel 5?
How do I assign several roles to users and permit the users to perform some actions based on those roles?
How can we create a record in laravel using eloquent?
How to check column is exists or not in a table using laravel?
Why middleware is used in laravel?
How we can get user's detail when he is logged in using auth?
How do I see all of the routes that are defined?
what is meant by Laravel - Contracts ?
How to run a php file in laravel?
How to check ajax request in laravel?