Skip to content

Commit

Permalink
SQLite dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
medilies committed Sep 2, 2022
1 parent 3870852 commit d998bcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Install the package via composer:
composer require medilies/laravel-algerian-provinces
```

Requirements:

1. SQLite.

### Publishing config file [Optional]

You can publish the config file with:
Expand Down Expand Up @@ -73,7 +77,11 @@ class Student extends Model

## Sushi

This package requires 0 config, and comes with no migrations or seeders thanks to the wonderful package [calebporzio/sushi](https://github.com/calebporzio/sushi). That allows us to offer a ready to use model without going the extra steps of affecting your database. If you prefer having a table in you database checkout [v1](https://github.com/elaborate-code/laravel-algerian-provinces/tree/v1-migration)
This package requires 0 config, and comes with no migrations or seeders thanks to the wonderful package [calebporzio/sushi](https://github.com/calebporzio/sushi). That allows us to offer a ready to use model without going the extra steps of affecting your database.

> However this dependency requires SQLite to be setup on your system!
If you prefer having a table in your database checkout [v1](https://github.com/elaborate-code/laravel-algerian-provinces/tree/v1-migration) which doesn't depand on calebporzio/sushi.

## Testing

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"require": {
"php": "^8.1",
"calebporzio/sushi": "^2.4",
"ext-pdo_sqlite": "*",
"illuminate/contracts": "^9.0",
"spatie/laravel-package-tools": "^1.9.2"
},
Expand Down

0 comments on commit d998bcb

Please sign in to comment.