mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-01 16:00:53 -05:00
fix: various larastan controller issues
This commit is contained in:
@@ -354,7 +354,7 @@ class TopicController extends Controller
|
||||
public function pin(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->pinned = 1;
|
||||
$topic->pinned = true;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -367,7 +367,7 @@ class TopicController extends Controller
|
||||
public function unpin(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->pinned = 0;
|
||||
$topic->pinned = false;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
|
||||
Reference in New Issue
Block a user