Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/events' into feat/events
Browse files Browse the repository at this point in the history
  • Loading branch information
Finnick223 committed Jan 19, 2025
2 parents dae7b33 + 7ced0a0 commit 943ea94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class EventController extends Controller
{
use AuthorizesRequests;

/**
* Display a listing of the resource.
*/
Expand Down Expand Up @@ -49,6 +50,7 @@ public function update(Request $request, Event $event)
]);

$event->update($validated);

return response()->json($event);
}

Expand Down
1 change: 0 additions & 1 deletion app/Models/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class Event extends Model
{

protected $fillable = ['title', 'start', 'end', 'user_id'];

public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo
Expand Down
4 changes: 2 additions & 2 deletions database/seeders/EventSeeder.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Event;
use App\Models\User;
use Illuminate\Database\Seeder;

class EventSeeder extends Seeder
{
Expand Down Expand Up @@ -49,4 +50,3 @@ public function run()
}
}
}

0 comments on commit 943ea94

Please sign in to comment.