-
-
Save ilyasozkurt/69627448faabe5e4e825b099aca74aa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
use Illuminate\Database\Eloquent\Model; | |
class Earthquake extends Model | |
{ | |
use HasFactory; | |
//Link model with table | |
protected $table = 'earthquakes'; | |
//Define fillable fields for model | |
protected $fillable = [ | |
'latitude', | |
'longitude', | |
'depth', | |
'md', | |
'ml', | |
'mw', | |
'region', | |
'happened_at', | |
'hash', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment