title: syntax error, unexpected '__data' (T_STRING), expecting ',' or ')' (View: C:\xampp\htdocs\boxe\resources\views\utenteShow.blade.php)
body: <p>I would need to solve this problem, when I press the record button, the program should bring me on the page of the user who has just registered but I get this error:</p>
  
  <p>ERROR:</p>
  
  <blockquote>
    <p>syntax error, unexpected '__data' (T_STRING), expecting ',' or ')' (View: C:\xampp\htdocs\boxe\resources\views\utenteShow.blade.php)</p>
  </blockquote>
  
  <p>ROUTES:</p>
  
  <pre><code>Route::post('/registrazione/store','RegistrazioniController@store')-&gt;name('registrazione.store');
  
  Route::get('/registrazione/{utente}','RegistrazioniController@show')-&gt;name('utente.show');
  </code></pre>
  
  <p>CONTROLLERS:</p>
  
  <pre><code>public function store(tabella_utenti $utente)
  {
      $this-&gt;validate (request(),[
          'email' =&gt; 'required',
          'password' =&gt; 'required',
          'NomeUtente' =&gt; 'required'
      ]);
      $utente=tabella_utenti::create(request(['email','password','NomeUtente']));
  
      //comando che gli passa l'id
      $utente=tabella_utenti::all();
      $utenteId=$utente-&gt;id;
      return redirect(route('utente.show',compact('utenteId')));
  
  }
  
  public function show(tabella_utenti $utente)
  {
      return view('utenteShow',compact('utente'));
  }
  </code></pre>
  
  <p>VIEW:</p>
  
  <pre><code>@extends('layouts.layout)
  
  @section('body')
      &lt;h1&gt;Pagina Utente&lt;/h1&gt;
  
          @foreach($utente as $value)
          Nome:{{$value-&gt;NomeUtente}}
  
          @endforeach
  
  @endsection
  </code></pre>