File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
blank_issues_enabled : false
2
2
contact_links :
3
3
- name : Ask a question
4
- url : https://github.com/CodingWisely /laravel-slug-auto-generator/discussions/new?category= q-a
4
+ url : https://github.com/coding-wisely /laravel-slug-auto-generator/discussions/categories/ q-a
5
5
about : Ask the community for help
6
6
- name : Request a feature
7
- url : https://github.com/CodingWisely/laravel-slug-auto-generator/discussions/new?category= ideas
7
+ url : https://github.com/CodingWisely/laravel-slug-auto-generator/discussions/ideas
8
8
about : Share ideas for new features
9
9
- name : Report a security issue
10
10
url : https://github.com/CodingWisely/laravel-slug-auto-generator/security/policy
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Fix PHP code style issues
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - dev
5
7
paths :
6
8
- ' **.php'
7
9
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public static function bootSlugGenerator(): void
12
12
static ::saving (function ($ model ) {
13
13
$ field = self ::getSluggableField ();
14
14
15
- if (!in_array ($ field , array_keys ($ model ->getAttributes ()))) {
15
+ if (! in_array ($ field , array_keys ($ model ->getAttributes ()))) {
16
16
throw new InvalidArgumentException ("{$ field } does not exist in the model. " );
17
17
}
18
18
Original file line number Diff line number Diff line change 2
2
3
3
namespace CodingWisely \SlugGenerator ;
4
4
5
- use CodingWisely \SlugGenerator \Commands \SlugGeneratorCommand ;
6
5
use Spatie \LaravelPackageTools \Package ;
7
6
use Spatie \LaravelPackageTools \PackageServiceProvider ;
8
7
9
8
class SlugGeneratorServiceProvider extends PackageServiceProvider
10
9
{
11
10
public function configurePackage (Package $ package ): void
12
11
{
13
- /*
14
- * This class is a Package Service Provider
15
- *
16
- * More info: https://github.com/spatie/laravel-package-tools
17
- */
18
12
$ package
19
13
->name ('laravel-slug-auto-generator ' )
20
14
->hasConfigFile ();
You can’t perform that action at this time.
0 commit comments