Laravel has a couple of ways in which to interrogate the database it’s linked to. In this tutorial, we will explore the four ways that the latest record (by date time) can be pulled out of any specified table. Whether ...

Getting the max date with Eloquent is executed by simply using the max() operator to get the maximum date time stamp in any given data table. The following example assumes the date column we are looking at is named created_at, ...

Rolling back queries is always a safeguard for your data if there were to be any errors during database manipulation. For example, during the execution of multiple delete commands or similarly, a save command in use with an update use-case. ...

Validation feedback messages are an invaluable addition to any CRUD style application. If your app allows users to create records that are stored in your database, then you will of course want to validate them before saving to the database. ...

The Answer: Accessing the current URL can be done by making use of the global url variable that is accessible in Laravel controllers. It can be called directly or can be imported as a facade that is then used as ...