Skip to content

Commit dad0181

Browse files
author
angel cruz
committed
Fix my stupidness
1 parent 9014c11 commit dad0181

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ php artisan migrate
3535
This package uses a polymorphic relationship to associate the Items model with the model of your choice, the only thing you have to do is add this to the model you want to use:
3636

3737
```php
38-
public function notes()
38+
public function notes(): MorphMany
3939
{
40-
return $this->morphMany(Note::class, 'author');
40+
return $this->morphMany(\App\Models\Tepuilabs\SimpleCrm\Note::class, 'author');
4141
}
4242
```
4343

src/SimpleCrmServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function boot(): void
1111
if ($this->app->runningInConsole()) {
1212
$this->publishes([
1313
__DIR__ . '/../models' => app_path('Models/Tepuilabs/SimpleCrm'),
14-
], 'simple-crm-models');
14+
], 'models');
1515

1616
$migrationFileNames = [
1717
'create_leads_table.php',
@@ -22,7 +22,7 @@ public function boot(): void
2222
if (! $this->migrationFileExists($key)) {
2323
$this->publishes([
2424
__DIR__ . "/../database/migrations/{$key}.stub" => database_path('migrations/' . date('Y_m_d_His', time()) . '_' . $key),
25-
], 'simple-crm-migrations');
25+
], 'migrations');
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)