I have this table of products and I want to show the values of only that one by the user that is logged.
my controller
public function mostrarTablausu()
{
$productos = productos::with('usuario','categoria','estado','mensajeson')->select('productos.*');
return Datatables::of($productos)->addColumn('action', function($productos)
{
return
'<a type="button" class="btn btn-info" href="">Aprovar</a>'.
'<a type="button" class="btn btn-danger" href="">Rechazar</a>'.
'<a onclick="" class="btn btn-warning" >Verificar</a>';
})->make(true);
}
I do not know how to show me only the products that only the logged-in user believes.