tambah orderBy dekat chargeableForm sort latest project

parent 75e04380
......@@ -122,6 +122,7 @@ class FormController extends Controller
$project = Pteam::where('pt_staff_id', $userId)
->where('pt_project_type', $chargeable)
->where('pt_project_task_sts', 1)
->orderby('created_at', 'desc')
->with('toProject')
->get();
// dd($project);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment