İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\FeedbackReport;
|
||||
|
||||
class FeedbackController extends Controller
|
||||
{
|
||||
public function saveStatuses(Request $r)
|
||||
{
|
||||
foreach ($r->statuses as $id => $status) {
|
||||
FeedbackReport::where("id", $id)->update([
|
||||
"status" => $status
|
||||
]);
|
||||
}
|
||||
|
||||
return back()->with("success", "Statuses updated");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user