javineo
123
2
Laravel

Last Registry of Table in SQL Server

Posted 1 year ago by javineo

I have to perform the following SQL Server query to get the last record of my table. To obtain it I use the following SQL Server select:

SELECT TOP 1 * FROM... ORDER BY RowId DESC

How can I do the same with Eloquent in laravel 5.5?

Thank you . . Totals

Please sign in or create an account to participate in this conversation.