Your code looks ok for me. You could use
Auth::id()
as an shorter way to get the current User ID by the way.
Your written code does not produce any SQL. So please show your "update" code. I cannot understand what you mean with "if I try to submit ... "
iwen65 said:
Your code looks ok for me. You could use
Auth::id()
as an shorter way to get the current User ID by the way.
Your written code does not produce any SQL. So please show your "update" code. I cannot understand what you mean with "if I try to submit ... "
I meant submitting with the 'submit' input type, in this code
@extends('layout.main')
@section('content')
<form action={{URL::route('account-confirm-change-email-post')}} method='post'> <div class='field'> <p> New Email Adress: <input type='text' name='new_email'></p> @if($errors->has('new_email')) {{$errors->first('new_email')}} @endif </div> <input type='submit' value='Set Email'> {{Form::token()}} </form>Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community