Course Join Form

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @php $courses = DB::table('courses') ->join('nominations', 'nominations.course_id', 'courses.id') ->orderBy('courses.id', 'desc') ->select('courses.id as id', 'courses.title') ->get(); @endphp