app/Http/Controllers/BarangController.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()
    {
        $data['barang'] = Barang::where('status','masuk')->get();
        return view('inventory.barang.index',$data);
    }
public function index ( ) { $ data [ 'barang' ] = Barang :: where ( 'status' , 'masuk' ) -> get ( ) ; return view ( 'inventory.barang.index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .