-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.4' into mysql_unix_socket_support
- Loading branch information
Showing
8 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,11 @@ | |
use Illuminate\Database\Eloquent\Model; | ||
use McCool\LaravelAutoPresenter\HasPresenter; | ||
|
||
/** | ||
* This is the schedule class. | ||
* | ||
* @author James Brooks <[email protected]> | ||
*/ | ||
class Schedule extends Model implements HasPresenter | ||
{ | ||
use SearchableTrait, SortableTrait, ValidatingTrait; | ||
|
@@ -44,6 +49,16 @@ class Schedule extends Model implements HasPresenter | |
*/ | ||
const COMPLETE = 2; | ||
|
||
/** | ||
* The model's attributes. | ||
* | ||
* @var string[] | ||
*/ | ||
protected $attributes = [ | ||
'status' => self::UPCOMING, | ||
'completed_at' => null, | ||
]; | ||
|
||
/** | ||
* The attributes that should be casted to native types. | ||
* | ||
|
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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