- view/index.blade.php
{{ Form::open(['url' => '/profile', 'method' => 'get']) }}
{{ Form::text('user', null, ['id'=>'users']) }}
{{ Form::submit('GO') }}
{{ Form::close() }}
- routes.php
Route::get('/', 'SearchController@index');
var defaults = { | |
number: 1, | |
bool: true, | |
magic: 'real', | |
animal: 'whale', | |
croutons: 'delicious' | |
}; | |
var options = { | |
number: 2, |
<?php | |
/** | |
* [list_searcheable_acf list all the custom fields we want to include in our search query] | |
* @return [array] [list of custom fields] | |
*/ | |
function list_searcheable_acf(){ | |
$list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF"); | |
return $list_searcheable_acf; | |
} |
<?php | |
define('MY_POST_TYPE', 'my'); | |
define('MY_POST_SLUG', 'gallery'); | |
function my_register_post_type () { | |
$args = array ( | |
'label' => 'Gallery', | |
'supports' => array( 'title', 'excerpt' ), | |
'register_meta_box_cb' => 'my_meta_box_cb', |
{{ Form::open(['url' => '/profile', 'method' => 'get']) }}
{{ Form::text('user', null, ['id'=>'users']) }}
{{ Form::submit('GO') }}
{{ Form::close() }}
Route::get('/', 'SearchController@index');
/******************************************************************************* | |
1. DEPENDENCIES | |
*******************************************************************************/ | |
var gulp = require('gulp'); // gulp core | |
sass = require('gulp-sass'), // sass compiler | |
uglify = require('gulp-uglify'), // uglifies the js | |
jshint = require('gulp-jshint'), // check if js is ok | |
rename = require("gulp-rename"); // rename files | |
concat = require('gulp-concat'), // concatinate js |
-- | |
-- La ciencia está en: | |
-- | |
-- * Agregar un campo en la tabla de tipo tsvector (1), en este caso se llama tsv, | |
-- podría ponérsele cualquier nombre. | |
-- * Agregar un índice GIN (2) | |
-- * Crear un trigger que cuando se inserte o actualice una tupla se actualice la | |
-- columna tsv (nuestro tsvector) | |
-- | |
-- 1. http://www.postgresql.org/docs/9.1/static/datatype-textsearch.html |