hide rate id from model

fixed DB not found in rate controller
This commit is contained in:
Jack Goh
2018-07-03 17:11:30 +08:00
parent 3aab1506c4
commit c902c8db82
4 changed files with 24 additions and 11 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class RateController extends Controller
public function show()
{
$rate = DB::table('rates')->latest()->first();
$rate = Rate::latest()->first();
return response()->json($rate, 200);
}