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 |
How to enable query log in laravel 5?
Explain faker in laravel.
What is Terminable Middleware ?
How do I know laravel version?
How to get last inserted id using laravel query?
Where laravel’s facades are defined?
Where can I learn laravel?
How can you display html with blade in laravel?
How to generate a controller with resources in laravel?
What are seeds in laravel?
Do you know what developed the laravel?
What is the use of slug in laravel?