restore composer.json, add mysqli extension
This commit is contained in:
24
app/Models/Currency.php
Executable file
24
app/Models/Currency.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Currency extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'dollar',
|
||||
'euro',
|
||||
'sum'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'dollar' => 'integer',
|
||||
'euro' => 'integer',
|
||||
];
|
||||
|
||||
public static function getCurrency()
|
||||
{
|
||||
return self::latest()->first();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user