Shared link expiration backend

Redirect from sign in page when user is logged
Updated README.md
This commit is contained in:
Peter Papp
2020-08-26 07:29:28 +02:00
parent 6f300ba1d5
commit 2b08d7801b
87 changed files with 355 additions and 155 deletions

View File

@@ -7,6 +7,7 @@ use App\Page;
use App\Setting;
use Artisan;
use Illuminate\Http\Request;
use Schema;
class UpgradeAppController extends Controller
{
@@ -123,4 +124,28 @@ class UpgradeAppController extends Controller
return response('Done', 200);
}
/**
* Upgrade database
*/
public function upgrade_database()
{
/*
* Upgrade expire_in in shares table
*
* @since v1.7.9
*/
if (! Schema::hasColumn('shares', 'expire_in')) {
$command = Artisan::call('migrate');
if ($command === 0) {
echo 'Operation was successful.';
}
if ($command === 1) {
echo 'Operation failed.';
}
}
}
}