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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners