I am trying to get specific data from the database by using column SongID when a user clicks a link but I am getting this error:
SongID
SQLSTATE[42
$song = DB::table('songs')->find($id);
here you use method find($id)
find($id)
for Laravel, if you use this method, you should have column named 'id' and set it as primary key, so then you'll be able to use method find()
find()
otherwise use where('SongID', $id) instead of find($id)
where('SongID', $id)