Skip to content

Commit 21b5ed9

Browse files
committed
init code
1 parent 8b9a040 commit 21b5ed9

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

composer.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "appel/laravel-sqlite-functions",
2+
"name": "appel/sqlite-functions",
33
"description": "A polyfill for various SQL functions that SQLite doesn't natively support.",
44
"type": "library",
55
"license": "MIT",
@@ -9,5 +9,20 @@
99
"email": "[email protected]"
1010
}
1111
],
12-
"require": {}
12+
"require": {
13+
"php": ">=7",
14+
"illuminate/database": "5.*",
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"Appel\\SqliteFunctions\\": "src/"
19+
}
20+
},
21+
"extra": {
22+
"laravel": {
23+
"providers": [
24+
"Appel\\SqliteFunctions\\ServiceProvider"
25+
]
26+
}
27+
}
1328
}

src/ServiceProvider.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Appel\SqliteFunctions;
4+
5+
class ServiceProvider extends BaseProvider
6+
{
7+
public function boot()
8+
{
9+
if ($this->app->make('db')->getDriverName() == 'sqlite') {
10+
//
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)