Created
August 20, 2016 20:45
-
-
Save mariapaulinar/9a4b7dbc885cca3f7be0515baeca0c43 to your computer and use it in GitHub Desktop.
Model con soft delete
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; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\SoftDeletes; | |
class Flight extends Model | |
{ | |
use SoftDeletes; | |
/** | |
* The attributes that should be mutated to dates. | |
* | |
* @var array | |
*/ | |
protected $dates = ['deleted_at']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment