Skip to content

Commit

Permalink
first commit 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Oct 28, 2024
1 parent 4c41fc5 commit fb69083
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Models/UserLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace TomatoPHP\FilamentLanguageSwitcher\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;

class UserLanguage extends Model
{
Expand All @@ -12,7 +13,15 @@ class UserLanguage extends Model
'lang',
];

public function model()
protected $dates = [
'created_at',
'updated_at',
];

/**
* @return MorphTo
*/
public function model(): MorphTo
{
return $this->morphTo();
}
Expand Down

0 comments on commit fb69083

Please sign in to comment.