app/Http/Controllers/MasyarakatController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $masyarakat = Masyarakat::orderBy('created_at','DESC')->get();
        return view('masyarakat.index',
            [
                "masyarakat" => $masyarakat
            ]);
    }
public function index ( ) { $ masyarakat = Masyarakat :: orderBy ( 'created_at' , 'DESC' ) -> get ( ) ; return view ( 'masyarakat.index' , [ " masyarakat " => $ masyarakat ] ) ; }
Display a listing of the resource.
Display a listing of the resource .