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 |
Where will you define laravel's facades?
Explain how to redirect user with flashed session data in laravel?
How to launch vagrant box?
How can I hide all stack whoops error information when the application is in production?
What do you know about traits in laravel?
Explain laravel echo.
Explain how to register a middleware in laravel?
In which directory laravel configartion files are kept.
How to configure route cache in laravel?
How do I perform dependency injection in laravel?
How to use delete statement in laravel?
Tell me what are pros and cons of using laravel framework?