-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add button Signed off by Colin Schoen <[email protected]> * Add ability to leave feedback for lab assistants. * Don't preventDefault() on modal open
- Loading branch information
1 parent
908ccd3
commit 4113ad3
Showing
4 changed files
with
70 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Carbon\Carbon; | ||
class Feedback extends Model { | ||
|
||
protected $table = "feedback"; | ||
|
||
public function getCreatedAtAttribute($value) | ||
{ | ||
return Carbon::createFromTimestamp(strtotime($value)) | ||
->timezone('America/Los_Angeles') | ||
->toDateTimeString() | ||
; | ||
} | ||
|
||
} |
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