Category: Laravel, PHP, javascript

A blog on PHP, JavaScript and more Amit Merchant · June 18, 2020 · ⋆ Laravel Sometimes, it’s useful to know if somethig has been changed in the model since it’s been loaded. For instance, you would want to check if the is_published attribute of the Post model is set or not before publishing the post further.

The isClean method is the opposite of isDirty methos which checks if attributes of the model is “clean” or not.

Follow me on Twitter @amit_merchant Tracking model attribute changes in Laravel Refactor conditions to a method for better readability in PHP These new string functions are coming in PHP 8 Find the extension of files without extension in Laravel Non-capturing exception catches in PHP 8
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