generated from vormkracht10/laravel-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
79663e7
commit 96c2484
Showing
7 changed files
with
68 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,44 @@ | ||
<?php | ||
|
||
// config for Vormkracht10/Redirects | ||
return [ | ||
/* | ||
* The available status codes for redirection. | ||
*/ | ||
'status_codes' => [ | ||
// 300 => 'Multiple Choices', | ||
301 => 'Moved Permanently', | ||
302 => 'Found', | ||
// 303 => 'See Other', | ||
// 304 => 'Not Modified', | ||
// 305 => 'Use Proxy', | ||
// 306 => 'Unused', | ||
307 => 'Temporary Redirect', | ||
308 => 'Permanent Redirect', | ||
], | ||
|
||
/* | ||
* The default status code to select when redirecting. | ||
*/ | ||
'default_status_code' => env('REDIRECT_DEFAULT_STATUS_CODE', 301), | ||
|
||
/* | ||
* If the case is sensitive, the following routes will be treated as different: | ||
* | ||
* /example | ||
* /Example | ||
*/ | ||
'case_sensitive' => env('REDIRECT_CASE_SENSITIVE', false), | ||
|
||
/* | ||
* If the trailing slash is sensitive, the following routes will be treated as different: | ||
* | ||
* /example | ||
* /example/ | ||
*/ | ||
'trailing_slash_sensitive' => env('REDIRECT_TRAILING_SLASH_SENSITIVE', false), | ||
|
||
/* | ||
* Always add a trailing slash for redirect endpoint to maintain consistency in used URLs for SEO. | ||
*/ | ||
'trailing_slash' => env('REDIRECT_WITH_TRAILING_SLASH', false), | ||
]; |
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,14 @@ | ||
<?php | ||
|
||
namespace Vormkracht10\Redirects\Models; | ||
|
||
use Illuminate\Database\Eloquent\Concerns\HasUlids; | ||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Redirect extends Model | ||
{ | ||
use HasFactory, HasUlids; | ||
|
||
protected $primaryKey = 'ulid'; | ||
} |
This file was deleted.
Oops, something went wrong.
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