|
@ -12,7 +12,7 @@ class Share extends BaseController |
|
|
private function _databaseFromToken($token) { |
|
|
private function _databaseFromToken($token) { |
|
|
$share = DB::table('shares') |
|
|
$share = DB::table('shares') |
|
|
->where('token', $token) |
|
|
->where('token', $token) |
|
|
->where('expires_at', '>', time()) |
|
|
|
|
|
|
|
|
->where('expires_at', '>', date('Y-m-d H:i:s')) |
|
|
->first(); |
|
|
->first(); |
|
|
|
|
|
|
|
|
if(!$share) return false; |
|
|
if(!$share) return false; |
|
|