Guest User

Untitled

a guest
Oct 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppHttpControllers;
  4.  
  5. use IlluminateHttpRequest;
  6. use AppTipoCambio;
  7. use DB;
  8.  
  9. class TipoCambioController extends Controller
  10. {
  11. /**
  12. * Display a listing of the resource.
  13. *
  14. * @return IlluminateHttpResponse
  15. */
  16.  
  17. public function index()
  18. {
  19. $cambios=TipoCambio::all();
  20. return view('TipoCambio.index',compact('cambios'));
  21. }
  22.  
  23. /**
  24. * Show the form for creating a new resource.
  25. *
  26. * @return IlluminateHttpResponse
  27. */
  28. public function create()
  29. {
  30. return view('TipoCambio.create');
  31. }
  32.  
  33. <?php
  34.  
  35. namespace App;
  36.  
  37. use IlluminateDatabaseEloquentModel;
  38.  
  39.  
  40. class TipoCambio extends Model
  41. {
  42. protected $table = 'tipo_cambio';
  43.  
  44. protected $fillable = [
  45. 'fch_registro',
  46. 'num_compra',
  47. 'num_venta',
  48. 'usu_ingreso',
  49. 'usu_modifica',
  50. 'flg_estado'
  51. ];
  52. }
Add Comment
Please, Sign In to add comment