Upgrade to Laravel v7
This commit is contained in:
parent
dd4573cb45
commit
7fc3fb19c0
8 changed files with 1337 additions and 766 deletions
|
@ -542,8 +542,8 @@ class Note extends Model
|
|||
public function setContacts(): void
|
||||
{
|
||||
$contacts = [];
|
||||
if ($this->getOriginal('note')) {
|
||||
preg_match_all(self::USERNAMES_REGEX, $this->getoriginal('note'), $matches);
|
||||
if ($this->getRawOriginal('note')) {
|
||||
preg_match_all(self::USERNAMES_REGEX, $this->getRawOriginal('note'), $matches);
|
||||
|
||||
foreach ($matches[1] as $match) {
|
||||
$contacts[$match] = Contact::where('nick', mb_strtolower($match))->first();
|
||||
|
|
|
@ -9,8 +9,8 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||
use Illuminate\Database\Eloquent\{Builder, Model};
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use Phaza\LaravelPostgis\Eloquent\PostgisTrait;
|
||||
use Phaza\LaravelPostgis\Geometries\Point;
|
||||
use MStaack\LaravelPostgis\Eloquent\PostgisTrait;
|
||||
use MStaack\LaravelPostgis\Geometries\Point;
|
||||
|
||||
// phpcs:disable Generic.Files.LineLength.TooLong
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue