Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Add filemaker service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakin Mohapatra authored and Lakin Mohapatra committed Feb 10, 2016
1 parent 251b838 commit 1b7943e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Database/FileMakerServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php namespace filemaker_laravel\Database;

use filemaker_laravel\Database\Connection;
use Illuminate\Support\ServiceProvider;
class FileMakerServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->resolving('db', function($db)
{
$db->extend('filemaker', function($config)
{
return new Connection($config);
});
});
}
}

0 comments on commit 1b7943e

Please sign in to comment.