Skip to content

Instantly share code, notes, and snippets.

@jmorenop89
Created September 18, 2019 20:46
Show Gist options
  • Select an option

  • Save jmorenop89/5e0b39ae2381a8f63cfce5560fc63458 to your computer and use it in GitHub Desktop.

Select an option

Save jmorenop89/5e0b39ae2381a8f63cfce5560fc63458 to your computer and use it in GitHub Desktop.
Model Procedure
<?php
namespace App\Procedure;
class Evento
{
public function obtener_eventos($query = '', $usuario_id = 0, $cliente_id = 0, $tipo_publicado = '-1', $orden = '1', $empieza = 0 )
{
try {
return \DB::select("CALL mis_eventos(?,?,?,?,?)", array($usuario_id, $cliente_id, $tipo_publicado , $orden, $query));
} catch (\Exception $e){
return [];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment