wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class Lastcall
|
||||
{
|
||||
public static function load($file)
|
||||
{
|
||||
$lastcall = (int) Storage::disk('local')->get($file);
|
||||
|
||||
if ($lastcall < time() - 30) {
|
||||
$lastcall = time() - 30;
|
||||
}
|
||||
|
||||
Storage::disk('local')->put($file, time());
|
||||
|
||||
return trim($lastcall);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user