private function getTerminalId()
 {
     $terminal = AuthCheck::getTerm();
     return $terminal->id;
 }
Beispiel #2
0
<?php

use FintechFab\ActionsCalc\Components\AuthCheck;
Route::filter('calcRegistered', function () {
    if (AuthCheck::getTerm() == null) {
        return Redirect::route('calcRegistration');
    }
});
Route::filter('calcNotRegistered', function () {
    if (AuthCheck::getTerm() != null) {
        return Redirect::route('calcAccount');
    }
});
 public function account()
 {
     $terminal = AuthCheck::getTerm();
     return $this->make('account', array('terminal' => $terminal));
 }