-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5aec84
commit e7aae0c
Showing
15 changed files
with
507 additions
and
314 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
class PostContent extends Content | ||
{ | ||
protected $table = 'post_contents'; | ||
} |
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,18 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
use App\Models\Content; | ||
|
||
trait CategoryContentUrlValidator | ||
{ | ||
use ContentUrlValidator; | ||
|
||
public function validateContentUrlWithoutOne($request, $content){ | ||
return $this->baseValidateContentUrlWithoutOne(Content::class, $request, $content); | ||
} | ||
|
||
public function validateContentUrl($request){ | ||
return $this->baseValidateContentUrl(Content::class, $request); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
use App\Models\PostContent; | ||
|
||
trait PostContentUrlValidator | ||
{ | ||
use ContentUrlValidator; | ||
|
||
public function validateContentUrlWithoutOne($request, $content){ | ||
return $this->baseValidateContentUrlWithoutOne(PostContent::class, $request, $content); | ||
} | ||
|
||
public function validateContentUrl($request){ | ||
return $this->baseValidateContentUrl(PostContent::class, $request); | ||
} | ||
} |
Oops, something went wrong.