1 year ago

How do I get the updated_at

Posted 1 year ago by Ap3twe

I want to get the value of the boolean when a project is updated. The problem is in MySQL database, the updated_at gets updated when a project is created. How do I get the value published when a project is updated?

This is the table schema

$table->enum('publish', ['New', 'Published'])->nullable()->default('New');

In the view, I get the default value

<td> <a href="/smiledesign/{{$project->id}}/userproject">{{$project->publish}}</a></td>

I wanna get the boolean Published when the project gets updated

Please sign in or create an account to participate in this conversation.