This file contains 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
//SearchController.php | |
public function autocomplete(){ | |
$term = Input::get('term'); | |
$results = array(); | |
$queries = DB::table('users') | |
->where('first_name', 'LIKE', '%'.$term.'%') | |
->orWhere('last_name', 'LIKE', '%'.$term.'%') | |
->take(5)->get(); |
This file contains 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
-- Function: dtr.sp_process_log(integer) | |
-- DROP FUNCTION dtr.sp_process_log(integer); | |
CREATE OR REPLACE FUNCTION dtr.sp_process_log(var_log_id integer) | |
RETURNS integer AS | |
$BODY$ | |
DECLARE | |
lkr dtr.log_keeper%ROWTYPE; |