public static function currentRouteName() { return \Illuminate\Routing\Router::currentRouteName(); }
public function harian() { $bil = 1; $laporans = Laporan::latest('tarikh')->assigned()->today()->get(); \Session::put('lastReport', \Route::currentRouteName()); return View('members.technician.harian', compact('bil', 'laporans')); }