This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ class Tla extends Model
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['acronym', 'hint', 'used', 'context'];
|
||||
protected $fillable = ['acronym', 'hint', 'language', 'used', 'context'];
|
||||
|
||||
public static function GetCurrentTla( string $language ) : Tla {
|
||||
$tla = Tla::where('used', date("Y-m-d"))
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TlaSuggestion extends Model
|
||||
{
|
||||
protected $table = 'tla_suggestion';
|
||||
|
||||
protected $fillable = ['acronym', 'hint', 'language', 'context'];
|
||||
}
|
||||
Reference in New Issue
Block a user