/** * Display a listing of the resource. * * @return Response */ public function index() { $date = rand(1, 40); $hadis = Hadis::find($date); // return View::make('emails.aduan'); Mail::send('emails.aduan', ['title' => 'Aduan Baru'], function ($message) { $message->to('*****@*****.**'); $message->subject('Aduan baru dari Sistem e-Direktori'); }); print_r(error_get_last()); return View::make('admin.hadis')->with('title', 'Hadis')->with('hadis', $hadis); }
public function carianStaff() { $date = rand(1, 40); $hadis = Hadis::find($date); // dd($date); if (\Session::get('hadisDone') == 'first') { \Session::put('hadisDone', 'done'); } if (!\Session::get('hadisDone')) { \Session::put('hadisDone', 'first'); } return View::make('admin.carian.carianStaff')->with('title', 'Carian Staff')->with('hadis', $hadis); }
public function carianStaff() { $date = date('d'); $hadis = Hadis::find($date); return View::make('/carian/index')->with('title', 'Carian Staff')->with('hadis', $hadis); }