When possible, the code you write should reflect the manner in which you speak about the product in real life. For example, if you run a school and need a way for students to complete assignments, let's work those terms into the code. Perhaps you should have an Assignment
model that includes a complete()
method.
app/Models
directory. This means an App\Post
namespace should now be App\Models\Post
.