This commit is contained in:
Andras Bacsai
2023-06-15 09:15:41 +02:00
parent 384ab2dd18
commit f79b3841c7
40 changed files with 119 additions and 197 deletions

View File

@@ -1,13 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Git extends Model
{
public function applications()
{
return $this->morphMany(Application::class, 'source');
}
}

View File

@@ -2,7 +2,9 @@
namespace App\Models;
class ProjectSetting extends BaseModel
use Illuminate\Database\Eloquent\Model;
class ProjectSetting extends Model
{
protected $fillable = [
'project_id'

View File

@@ -2,7 +2,9 @@
namespace App\Models;
class ServerSetting extends BaseModel
use Illuminate\Database\Eloquent\Model;
class ServerSetting extends Model
{
protected $fillable = [
'server_id'

View File

@@ -5,10 +5,11 @@ namespace App\Models;
use App\Notifications\Channels\SendsEmail;
use App\Notifications\Channels\SendsDiscord;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Spatie\SchemalessAttributes\Casts\SchemalessAttributes;
class Team extends BaseModel implements SendsDiscord, SendsEmail
class Team extends Model implements SendsDiscord, SendsEmail
{
use Notifiable;

View File

@@ -31,9 +31,6 @@ class User extends Authenticatable implements SendsEmail
{
parent::boot();
static::creating(function (Model $model) {
$model->uuid = (string) new Cuid2(7);
});
static::created(function (User $user) {
$team = [
'name' => $user->name . "'s Team",