- 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:
parent
46a68e5418
commit
dfe76d1a36
|
@ -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
996
composer.lock
generated
File diff suppressed because it is too large
Load Diff
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user