app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $mevents = Events::whereMonth('date','=',date('m',time()))->get();
        $events = Events::whereNotIn('id',$mevents)->orderBy('date','desc')->get();
        return view('home')->with('mevents',$mevents)->with('events',$events);
    }
public function index ( ) { $ mevents = Events :: whereMonth ( 'date' , '=' , date ( 'm' , time ( ) ) ) -> get ( ) ; $ events = Events :: whereNotIn ( 'id' , $ mevents ) -> orderBy ( 'date' , 'desc' ) -> get ( ) ; return view ( 'home' ) -> with ( 'mevents' , $ mevents ) -> with ( 'events' , $ events ) ; }
Show the application dashboard.
Show the application dashboard .