public function show($courseid)
{
$course = course::find($courseid) ;
return view('admin/showc')->withCourse($course);
}
私はfind
機能に問題がある、それは$id
として$couseid
を使用して検索し、私はデータベースfind関数でパラメータ名を変更するには?
で$id
を持っていない私は、このエラーがあります:
Illuminate\Database\QueryException (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'courses.id' in 'where clause' (SQL: select * from
courses
wherecourses
.id
= cmpe102 limit 1)
:: WHERE' –