-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from laravelcm/patch-fix
feat: fix slug generation and add new tests
- Loading branch information
Showing
23 changed files
with
144 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
database/migrations/remove_unique_slug_on_subscriptions_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::table(config('laravel-subscriptions.tables.subscriptions'), function (Blueprint $table): void { | ||
$table->dropUnique(config('laravel-subscriptions.tables.subscriptions') . '_slug_unique'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
{ | ||
"preset": "psr12", | ||
"preset": "laravel", | ||
"rules": { | ||
"align_multiline_comment": true, | ||
"concat_space": { | ||
"spacing": "one" | ||
}, | ||
"array_indentation": true, | ||
"array_syntax": true, | ||
"blank_line_after_namespace": true, | ||
"blank_line_after_opening_tag": true, | ||
"combine_consecutive_issets": true, | ||
"combine_consecutive_unsets": true, | ||
"concat_space": true, | ||
"declare_parentheses": true, | ||
"blank_line_before_statement": true, | ||
"declare_strict_types": true, | ||
"explicit_string_variable": true, | ||
"final_internal_class": false, | ||
"fully_qualified_strict_types": true, | ||
"global_namespace_import": { | ||
"import_classes": true, | ||
"import_constants": true, | ||
"import_functions": true | ||
}, | ||
"is_null": true, | ||
"lambda_not_used_import": true, | ||
"logical_operators": true, | ||
"mb_str_functions": true, | ||
"method_chaining_indentation": true, | ||
"modernize_strpos": true, | ||
"new_with_braces": true, | ||
"no_empty_comment": true, | ||
"not_operator_with_space": true, | ||
"ordered_traits": true, | ||
"protected_to_private": true, | ||
"simplified_if_return": true, | ||
"strict_comparison": true, | ||
"ternary_to_null_coalescing": true, | ||
"trim_array_spaces": true, | ||
"use_arrow_functions": true, | ||
"void_return": true | ||
"declare_parentheses": true, | ||
"ordered_traits": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.