@@ -68,7 +68,7 @@ public function user(): BelongsTo
6868 protected function imageUrl (): Attribute
6969 {
7070 return Attribute::make (
71- get: fn () => $ this ->image_path ? Storage::disk ('public ' )->url ($ this ->image_path ) : null ,
71+ get: fn () => $ this ->image_path ? Storage::disk ('public ' )->url ($ this ->image_path ) : null ,
7272 );
7373 }
7474
@@ -99,8 +99,8 @@ public function edits(): HasMany
9999 protected function platforms (): Attribute
100100 {
101101 return Attribute::make (
102- get: fn ($ value ) => explode (', ' , $ value ),
103- set: fn ($ value ) => implode (', ' , $ value )
102+ get: fn ($ value ) => explode (', ' , $ value ),
103+ set: fn ($ value ) => implode (', ' , $ value )
104104 );
105105 }
106106
@@ -110,7 +110,7 @@ protected function platforms(): Attribute
110110 protected function topicTags (): Attribute
111111 {
112112 return Attribute::make (
113- get: fn () => $ this ->tagsWithType ('topics_tags ' )->pluck ('name ' )->toArray (),
113+ get: fn () => $ this ->tagsWithType ('topics_tags ' )->pluck ('name ' )->toArray (),
114114 set: function (array $ value ) {
115115 $ old_value = $ this ->topic_tags ;
116116 $ this ->syncTagsWithType ($ value , 'topics_tags ' );
@@ -127,7 +127,7 @@ protected function topicTags(): Attribute
127127 protected function programmingLanguageTags (): Attribute
128128 {
129129 return Attribute::make (
130- get: fn () => $ this ->tagsWithType ('programming_languages_tags ' )->pluck ('name ' )->toArray (),
130+ get: fn () => $ this ->tagsWithType ('programming_languages_tags ' )->pluck ('name ' )->toArray (),
131131 set: function (array $ value ) {
132132 $ old_value = $ this ->programming_language_tags ;
133133 $ this ->syncTagsWithType ($ value , 'programming_languages_tags ' );
@@ -144,7 +144,7 @@ protected function programmingLanguageTags(): Attribute
144144 protected function generalTags (): Attribute
145145 {
146146 return Attribute::make (
147- get: fn () => $ this ->tagsWithType ('general_tags ' )->pluck ('name ' )->toArray (),
147+ get: fn () => $ this ->tagsWithType ('general_tags ' )->pluck ('name ' )->toArray (),
148148 set: function (array $ value ) {
149149 $ old_value = $ this ->general_tags ;
150150 $ this ->syncTagsWithType ($ value , 'general_tags ' );
0 commit comments