laravel restore soft delete
snippet in php

laravel restore soft delete

user2958

Post::withTrashed()->find($post_id)->restore();

laravel soft delete

user1214

$flights = Flight::where('active', 1)
               ->orderBy('name')
               ->take(10)
               ->get();