Skip to content

Commit

Permalink
feat: add image
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskorbakov committed Oct 26, 2024
1 parent e820709 commit 3d842e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/Models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ class Team extends Model
{
use HasFactory;

public $timestamps = true;

protected $fillable = [
'name',
'description',
'image'
];

public function users(): belongsToMany
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function up(): void
Schema::create('teams', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('image')->nullable();
$table->text('description');
$table->timestamps();
});
Expand Down

0 comments on commit 3d842e0

Please sign in to comment.