Its namespacing.
http://mattstauffer.co/blog/a-brief-introduction-to-php-namespacing
Imports are based on the current file, you do not inherit any imports. You will have to use DB
in every file you need to use it in that isn't in the root namespace, or reference DB using it's Fully Qualified Class Name.
Hi Thanks you for your valuable reply.
Can you tell me where to keep my common DB functions ("like getting all category/language/country details") and it would be load automatically without include in every page i.e include in one common file same like config file.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community