I am trying to get the last id of my table, I want this to know what is the next number of my counter and to show it to the user, I've tried with the last()
method but I got this:
>>> $trans = Transferencia::last()
BadMethodCallException with message 'Call to undefined method Illuminate\Database\Query\Builder::last()'
Is there other way to know this?