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 us what are advantages of laravel?
How to pass multiple variables by controller to blade file?
Explain some features of laravel?
How to do 301 redirects in laravel?
Explain closures in laravel?
Explain how to get current url in laravel?
What is difference between php and laravel?
Tell me how would you add a 3rd party package like sentry?
What is eloquent model?
What is ajax in laravel?
Explain the service container and its advantages.
How to write php code in laravel blade?