There are 2 ways to delete records from tables. Physical deletion is to literally delete records from your database and there is no way to restore it.

("Delete the record from the table 'books' whose 'authoer_id' is 2.")

If you want to get all records from books, you can code; Enter fullscreen mode

Then in a Model file, delete(); you still see the record in your database, but it is logically deleted.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners