Support the ongoing development of Laravel.io →
Configuration Installation
Last updated 2 years ago.
0

some one please guide me

0
Solution

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.

0

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.

0

someone please help me

0

Sign in to participate in this thread!

Eventy

Your banner here too?

siva siva Joined 12 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.