chore: Refactor configuration files based on Laravel 10 skeleton

This commit is contained in:
Jonny Barnes 2023-06-09 18:31:53 +01:00
parent 3f78d5118a
commit bebbfec510
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
35 changed files with 205 additions and 284 deletions

View file

@ -179,7 +179,7 @@ class Note extends Model
public function getShorturlAttribute(): string
{
return config('app.shorturl') . '/notes/' . $this->nb60id;
return config('url.shorturl') . '/notes/' . $this->nb60id;
}
public function getIso8601Attribute(): string

View file

@ -84,7 +84,7 @@ class Place extends Model
protected function shorturl(): Attribute
{
return Attribute::get(
get: fn ($value, $attributes) => config('app.shorturl') . '/places/' . $attributes['slug'],
get: fn ($value, $attributes) => config('url.shorturl') . '/places/' . $attributes['slug'],
);
}