Skip to content

Laravel custom db driver

i know there is a nice way of defining connections via app/config/database.php . But i don’t think there is a driver for me available. Imagine my db is read from file, like a txt. (Yeah! that’s my client db, sort of). So in that file, before I i need a real driver! Currently it uses a txt base db …

Override JSON view in RequestHandler in CakePHP

I want to rewrite JSON View in the RequestHandler. So there’s a file project_root/lib/JsonView.php. What I want to do is to Import the JsonView.php file in another file in project_root/app/View/…

Laravel – Session returns null

I’m using sessions for the first time in Laravel and I’m trying to do a multiple step form, so I thought using sessions would be a smart move. however the following code returns a null value, what am …

What is Facades used in Laravel?

I’m confused by the Facades offered by Laravel. The Laravel documentation states: Facades provide a “static” interface to classes that are available in the application’s service container. Laravel ships with many facades which provide access to almost all of Laravel’s features. L…