|
|
@@ -20,7 +20,7 @@ class ClassifyController extends Controller
|
|
20
|
20
|
*/
|
|
21
|
21
|
public function home(Request $request)
|
|
22
|
22
|
{
|
|
23
|
|
- $top = Classify::where("location", "top")->limit(3)->toList();
|
|
|
23
|
+ $top = Classify::where("location", "top")->limit(3)->get()->toArray();
|
|
24
|
24
|
$bottom = Classify::where("location", "bottom")->first();
|
|
25
|
25
|
|
|
26
|
26
|
$tops = array_map(function ($t) {
|