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.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners