cara meneruskan data ke controller di Laravel
$dept = DB::table('master_department')->get();
$design = DB::table('master_designation')->get();
return view('registration', ['dept' => $dept], compact('design'));
#if we send as array
@foreach($dept as $key=>$d)
{{ $dept[$key]->dept_title }}
@endforeach
#if we send as compact object
@foreach($design as $deg)
<option value="{{ $deg->id }}">{{ $deg->deg_title }}</option>
@endforeach
@CodeGrepperManu