Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppHttpControllers;
- use IlluminateHttpRequest;
- use AppTipoCambio;
- use DB;
- class TipoCambioController extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @return IlluminateHttpResponse
- */
- public function index()
- {
- $cambios=TipoCambio::all();
- return view('TipoCambio.index',compact('cambios'));
- }
- /**
- * Show the form for creating a new resource.
- *
- * @return IlluminateHttpResponse
- */
- public function create()
- {
- return view('TipoCambio.create');
- }
- <?php
- namespace App;
- use IlluminateDatabaseEloquentModel;
- class TipoCambio extends Model
- {
- protected $table = 'tipo_cambio';
- protected $fillable = [
- 'fch_registro',
- 'num_compra',
- 'num_venta',
- 'usu_ingreso',
- 'usu_modifica',
- 'flg_estado'
- ];
- }
Add Comment
Please, Sign In to add comment