- composer updates for 3rd party libraries

- LoginController.php: logout to new frontend
- db migration file for changing smallInteger to integer for: elevation_min, elevation_max, elevation_absolut, depth_min, depth_max, depth_absolut
This commit is contained in:
Arno Kaimbacher 2022-08-04 15:03:05 +02:00
parent 46a68e5418
commit dfe76d1a36
3 changed files with 563 additions and 493 deletions

View File

@ -5,6 +5,8 @@ namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
class LoginController extends Controller
{
@ -37,4 +39,20 @@ class LoginController extends Controller
{
$this->middleware('guest')->except('logout');
}
/**
* Logout trait
*
* @author Yugo <dedy.yugo.purwanto@gmail.com>
* @param Request $request
* @return void
*/
protected function logout(Request $request)
{
$this->guard()->logout();
$request->session()->flush();
$request->session()->regenerate();
$frontend = config('tethys.frontend');
return redirect($frontend);
}
}

996
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeDepthCoverage extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('coverage', function (Blueprint $table) {
$table->integer('elevation_min')->nullable()->change();
$table->integer('elevation_max')->nullable()->change();
$table->integer('elevation_absolut')->nullable()->change();
$table->integer('depth_min')->nullable()->change();
$table->integer('depth_max')->nullable()->change();
$table->integer('depth_absolut')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('coverage', function (Blueprint $table) {
$table->smallInteger('elevation_min')->nullable()->change();
$table->smallInteger('elevation_max')->nullable()->change();
$table->smallInteger('elevation_absolut')->nullable()->change();
$table->smallInteger('depth_min')->nullable()->change();
$table->smallInteger('depth_max')->nullable()->change();
$table->smallInteger('depth_absolut')->nullable()->change();
});
}
}