Exemplo n.º 1
0
 public function testInsert()
 {
     $testEntity = new TestEntity();
     $data = ["test_col1" => "hola", "test_col2" => "hola", "test_col3" => "hola"];
     $testEntity->myInsert($data);
 }
Exemplo n.º 2
0
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
use UCRest\Models\Database\Entity\TestEntity;
Route::get('/', function () {
    $testEntity = new TestEntity();
    $data = ["test_col1" => "hola", "test_col2" => "hola", "test_col3" => "hola", "test_col4" => "hola"];
    $value = $testEntity->myInsert($data);
    return view('bienvenida');
});