Skip to content

Commit

Permalink
can publish migration file + installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jul 13, 2024
1 parent 3f22f83 commit 820ea8f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ A wrapper simplifies the usage and implementation of powerful APIs like "The Odd
# Contribution Guide
This is an open-source project, so contributions are welcome! Whether you want to add new features, fix bugs, or improve documentation, your help is appreciated. Submit your PR for review and I will review them as soon as possible.

# Steps for Installation
### Composer
```bash
composer require sethsharp/odds-api
```

### Publish Config file
This file contains some essential information the Client requires to make successful requests
```bash
php artisan vendor:publish --tag="odds-api-config"
```

## Credits
- [Seth Sharp](https://github.com/SethSharp)
- [All Contributors](https://github.com/SethSharp/odds-api/graphs/contributors)
Expand Down
15 changes: 15 additions & 0 deletions src/OddsApiProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace SethSharp\OddsApi;

use Illuminate\Support\ServiceProvider;

class OddsApiProvider extends ServiceProvider
{
public function boot()
{
$this->publishes([
__DIR__ . '/../config/odds-api.php' => config_path('odds-api.php')
], 'odds-api-config');
}
}

0 comments on commit 820ea8f

Please sign in to comment.