Skip to content

Commit 36001de

Browse files
authored
Merge pull request #28 from josezenem/master
Initial 5.6 Support
2 parents 4272845 + 871773b commit 36001de

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Repoist
22

3-
Laravel 5.5 repository generator.
3+
Laravel 5.6 repository generator.
44

55
## Usage
66

@@ -10,22 +10,11 @@ Laravel 5.5 repository generator.
1010
composer require ozankurt/repoist
1111
```
1212

13-
### Step 2: Register the Service Provider
14-
15-
Add the service provider to `config/app.php`.
16-
17-
```php
18-
/*
19-
* Package Service Providers...
20-
*/
21-
Kurt\Repoist\RepoistServiceProvider::class,
22-
```
23-
24-
### Step 3: Publish and edit the configurations
13+
### Step 2: Publish and edit the configurations
2514

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

28-
### Step 4: Run Artisan!
17+
### Step 3: Run Artisan!
2918

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

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ozankurt/repoist",
3-
"description": "Laravel 5.5 repository generator.",
3+
"description": "Laravel 5.6 repository generator.",
44
"keywords": ["laravel", "repository", "repoist", "database"],
55
"license": "MIT",
66
"authors": [
@@ -10,13 +10,20 @@
1010
}
1111
],
1212
"require": {
13-
"illuminate/support": "5.5.*"
13+
"illuminate/support": "5.6.*"
1414
},
1515
"require-dev": {
1616
},
1717
"autoload": {
1818
"psr-4": {
1919
"Kurt\\Repoist\\": "src/"
2020
}
21+
},
22+
"extra": {
23+
"laravel": {
24+
"providers": [
25+
"Kurt\\Repoist\\RepoistServiceProvider"
26+
]
27+
}
2128
}
2229
}

src/Commands/MakeRepositoryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function createRepository($contract, $contractName)
118118
$content = $this->fileManager->get($this->stubs['repository']);
119119

120120
$replacements = [
121-
'%contract%' => $contract,
121+
'%contract%' => $this->appNamespace.$contract,
122122
'%contractName%' => $contractName,
123123
'%model%' => $this->model,
124124
'%modelName%' => $this->modelName,

0 commit comments

Comments
 (0)