Skip to content

Commit

Permalink
Merge pull request #28 from josezenem/master
Browse files Browse the repository at this point in the history
Initial 5.6 Support
  • Loading branch information
OzanKurt committed Mar 10, 2018
2 parents 4272845 + 871773b commit 36001de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Repoist

Laravel 5.5 repository generator.
Laravel 5.6 repository generator.

## Usage

Expand All @@ -10,22 +10,11 @@ Laravel 5.5 repository generator.
composer require ozankurt/repoist
```

### Step 2: Register the Service Provider

Add the service provider to `config/app.php`.

```php
/*
* Package Service Providers...
*/
Kurt\Repoist\RepoistServiceProvider::class,
```

### Step 3: Publish and edit the configurations
### Step 2: Publish and edit the configurations

**In Laravel:** Run `php artisan vendor:publish --tag=repoist-config` from the console to configure the Repoist according to your needs.

### Step 4: Run Artisan!
### Step 3: Run Artisan!

You're all set. Run `php artisan` from the console, and you'll see the new commands.

Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ozankurt/repoist",
"description": "Laravel 5.5 repository generator.",
"description": "Laravel 5.6 repository generator.",
"keywords": ["laravel", "repository", "repoist", "database"],
"license": "MIT",
"authors": [
Expand All @@ -10,13 +10,20 @@
}
],
"require": {
"illuminate/support": "5.5.*"
"illuminate/support": "5.6.*"
},
"require-dev": {
},
"autoload": {
"psr-4": {
"Kurt\\Repoist\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Kurt\\Repoist\\RepoistServiceProvider"
]
}
}
}
2 changes: 1 addition & 1 deletion src/Commands/MakeRepositoryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function createRepository($contract, $contractName)
$content = $this->fileManager->get($this->stubs['repository']);

$replacements = [
'%contract%' => $contract,
'%contract%' => $this->appNamespace.$contract,
'%contractName%' => $contractName,
'%model%' => $this->model,
'%modelName%' => $this->modelName,
Expand Down

0 comments on commit 36001de

Please sign in to comment.