temp
temp
temp
We have built this flash card app for students of Japanese classes in Pune. This helps the students a lot. Also, this helps the Japanese class save a lot of time in getting practice done from students. Also, indirect effect is better exam results which in turn helps the clients get more students. Here is a quick demo of the app.
How to use it?
Various methods related to soft delete
if ($flight->trashed()) {
//
}
$flights = App\Flight::withTrashed()
->where(‘account_id’, 1)
->get();
$flights = App\Flight::onlyTrashed()
->where(‘airline_id’, 1)
->get();
App\Flight::withTrashed()
->where(‘airline_id’, 1)
->restore();
Conclusion
Soft delete feature is a very useful feature of Laravel. This feature helps us to retrieve a record from database in case if a wrong record was deleted from the user interface. Implementing this is Laravel by following the above steps is really easy.
References