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:
ERROR:
syntax error, unexpected '__data' (T_STRING), expecting ',' or ')' (View: C:\xampp\htdocs\boxe\resources\views\utenteShow.blade.php)
ROUTES:
Route::post('/registrazione/store','RegistrazioniController@store')->name('registrazione.store');
Route::get('/registrazione/{utente}','RegistrazioniController@show')->name('utente.show');
CONTROLLERS:
public function store(tabella_utenti $utente)
{
    $this->validate (request(),[
        'email' => 'required',
        'password' => 'required',
        'NomeUtente' => 'required'
    ]);
    $utente=tabella_utenti::create(request(['email','password','NomeUtente']));
    //comando che gli passa l'id
    $utente=tabella_utenti::all();
    $utenteId=$utente->id;
    return redirect(route('utente.show',compact('utenteId')));
}
public function show(tabella_utenti $utente)
{
    return view('utenteShow',compact('utente'));
}
VIEW:
@extends('layouts.layout)
@section('body')
    <h1>Pagina Utente</h1>
        @foreach($utente as $value)
        Nome:{{$value->NomeUtente}}
        @endforeach
@endsection
 
     
    