I have a form which gives me a query of a certain number of records, I would like it when these records appear to show a message on the top that says how many records I consult, but I have no idea how to handle these messages in laravel Does anyone know any techniques?
I tried to do it like that ..
* @return \Illuminate\Http\Response
*/
public function listusuario()
{
$user=user::orderBy('id','DESC')->paginate(10);
$conteo=User::count();
return view('usuario.ecuenta',compact('user'));
return redirect()->back()->withSuccess('IT WORKS!');
}
and I intend to receive it in the view
@if(session('success'))
<div class="alert alert-success">
<h1>{{session('success')}}</h1>
</div>
@endif