How to Declaration of namespace ?
Answers were Sorted based on User's Feedback
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 |
Answer / Arpit Kapoor
To declare a namespace in PHP, you can use the `namespace` keyword followed by the name of your namespace. For example: `namespace App;`. All the classes within this namespace should be located in the corresponding directory structure.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain few features of laravel?
What is laravel best for?
Explain how to bind a service container to a service provide?
What are laravel contract’s?
What is meant by Controller Middleware ?
What is ioc container in laravel?
Tell me what is system requirement for installation of laravel 5.2 (latest version)?
Who are Manually Authenticating Users in Laravel ?
Please explain what is laravel?
How to enable maintenance mode in laravel 5?
Tell me how can you display html with blade in laravel?
How will you explain dd() function in laravel?