app/Http/Controllers/LelangController.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()
    {
        $lelang = Lelang::where(['status' => 'dibuka'])->orderBy('created_at','DESC')->get();
        return view('lelang.index',[
            'lelang' => $lelang
        ]);
    }
public function index ( ) { $ lelang = Lelang :: where ( [ 'status' => 'dibuka' ] ) -> orderBy ( 'created_at' , 'DESC' ) -> get ( ) ; return view ( 'lelang.index' , [ 'lelang' => $ lelang ] ) ; }
Display a listing of the resource.
Display a listing of the resource .