Created
September 18, 2019 20:46
-
-
Save jmorenop89/5e0b39ae2381a8f63cfce5560fc63458 to your computer and use it in GitHub Desktop.
Model Procedure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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