daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function login(Request $request) {
  2.  
  3.     $inputted_orderId = $request->input('order_id');      
  4.     $orderIdInDB = DB::table(self::SITE_IN_DEVELOPMENT_TABLE_NAME)
  5.             ->where(self::ORDER_ID_FIELD_NAME, $inputted_orderId)->first();
  6.  
  7.    if (is_null($orderIdInDB)) {
  8.        return Redirect::route('loginToSitesInDevelopmentZonePage')->withErrors('wrongOrderId');
  9.    }              
  10. }
  11.    
  12. @if (!empty($errors->first('wrongOrderId')))
  13.     <div class="signInForm-errorMessagebox" id="invalidID-errorMessage">
  14.         <!-- ... -->
  15.     </div>
  16. @endif
  17.    
  18. @if($errors->any())
  19.     <div class="signInForm-errorMessagebox" id="invalidID-errorMessage">
  20.         <!-- ... -->
  21.     </div>
  22.  @endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top