In Laravel to access query, we use DB facades
DB::select()
from alanstorm website http://alanstorm.com/binding_objects_as_laravel_services I learned that DB facade use callstatic method that lead to DB::app['db']->select(). app is the Laravel service container object which all the services are bound into it. I use var_dump PHP method var_dump(app['db']) and I can see that the service container returns an Illuminate\Database\DatabaseManager object. from DatabaseManager class that implement ConnectionResolverInterface. I don't see the select method defined there. I want to ask how app['db'] can get access to select method.