Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

orchidsoftware/platform

4733 stars
1 code files
View orchidsoftware/platform on GitHub

src/Platform/Http/Controllers/AttachmentController.php

Open in GitHub
class AttachmentController extends Controller
{
//
public function sort(Request $request)
{
collect($request->get('files', []))
->each(function ($sort, $id) {
$attachment = $this->attachment->find($id);
$attachment->sort = $sort;
$attachment->save();
});
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.