public static function post_delete($id) { $project = Project::with('author')->find($id); $project->delete(); }