Skip to content

Commit 2c26499

Browse files
committed
make migrations unique
1 parent 87c05aa commit 2c26499

5 files changed

+13
-11
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ You can install the package via composer:
2323
composer require statikbe/laravel-filament-flexible-content-block-pages
2424
```
2525

26-
You can publish and run the migrations with:
26+
Publish the config file with:
2727

2828
```bash
29-
php artisan vendor:publish --tag="laravel-filament-flexible-content-block-pages-migrations"
30-
php artisan migrate
29+
php artisan vendor:publish --tag="filament-flexible-content-block-pages-config"
3130
```
3231

33-
You can publish the config file with:
32+
If you want to alter the names of the database tables, do so in the config file, before running the migrations.
33+
34+
You can publish and run the migrations with:
3435

3536
```bash
36-
php artisan vendor:publish --tag="laravel-filament-flexible-content-block-pages-config"
37+
php artisan vendor:publish --tag="filament-flexible-content-block-pages-migrations"
38+
php artisan migrate
3739
```
3840

3941
This is the contents of the published config file:
@@ -46,14 +48,14 @@ return [
4648
Optionally, you can publish the views using
4749

4850
```bash
49-
php artisan vendor:publish --tag="laravel-filament-flexible-content-block-pages-views"
51+
php artisan vendor:publish --tag="filament-flexible-content-block-pages-views"
5052
```
5153

5254
## Usage
5355

5456
```php
55-
$laravelFilamentFlexibleContentBlockPages = new Statikbe\LaravelFilamentFlexibleContentBlockPages();
56-
echo $laravelFilamentFlexibleContentBlockPages->echoPhrase('Hello, Statikbe!');
57+
$filamentFlexibleContentBlockPages = new Statikbe\FilamentFlexibleContentBlockPages();
58+
echo $filamentFlexibleContentBlockPages->echoPhrase('Hello, Statikbe!');
5759
```
5860

5961
## Testing
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/FilamentFlexibleContentBlockPagesServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public function configurePackage(Package $package): void
1919
->hasConfigFile()
2020
->hasViews()
2121
->hasMigrations([
22-
'create_pages_table',
23-
'create_redirects_table',
24-
'create_settings_table',
22+
'create_filament_flexible_content_block_pages_redirects_table',
23+
'create_filament_flexible_content_block_pages_settings_table',
24+
'create_filament_flexible_content_block_pages_table',
2525
])
2626
->hasTranslations();
2727
}

0 commit comments

Comments
 (0)