Skip to content

Commit

Permalink
Recaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhang-arora committed Oct 19, 2016
1 parent a87cdd4 commit 6316454
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 150 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ S3_KEY=
S3_SECRET=
S3_REGION=
S3_BUCKET_FORMS=

RECAPTCHA_PUBLIC_KEY=
RECAPTCHA_PRIVATE_KEY=
65 changes: 52 additions & 13 deletions _ide_helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.2.41 on 2016-07-31.
* Generated for Laravel 5.2.45 on 2016-10-19.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
Expand Down Expand Up @@ -3876,7 +3876,7 @@ public static function applyScopes(){
/**
* Get the underlying query builder instance.
*
* @return \Illuminate\Database\Query\Builder|static
* @return \Illuminate\Database\Query\Builder
* @static
*/
public static function getQuery(){
Expand Down Expand Up @@ -4461,6 +4461,33 @@ public static function orWhereDate($column, $operator, $value){
return \Illuminate\Database\Query\Builder::orWhereDate($column, $operator, $value);
}

/**
* Add a "where time" statement to the query.
*
* @param string $column
* @param string $operator
* @param int $value
* @param string $boolean
* @return \Illuminate\Database\Query\Builder|static
* @static
*/
public static function whereTime($column, $operator, $value, $boolean = 'and'){
return \Illuminate\Database\Query\Builder::whereTime($column, $operator, $value, $boolean);
}

/**
* Add an "or where time" statement to the query.
*
* @param string $column
* @param string $operator
* @param int $value
* @return \Illuminate\Database\Query\Builder|static
* @static
*/
public static function orWhereTime($column, $operator, $value){
return \Illuminate\Database\Query\Builder::orWhereTime($column, $operator, $value);
}

/**
* Add a "where day" statement to the query.
*
Expand Down Expand Up @@ -4816,7 +4843,7 @@ public static function count($columns = '*'){
* Retrieve the minimum value of a given column.
*
* @param string $column
* @return float|int
* @return mixed
* @static
*/
public static function min($column){
Expand All @@ -4827,7 +4854,7 @@ public static function min($column){
* Retrieve the maximum value of a given column.
*
* @param string $column
* @return float|int
* @return mixed
* @static
*/
public static function max($column){
Expand All @@ -4838,7 +4865,7 @@ public static function max($column){
* Retrieve the sum of the values of a given column.
*
* @param string $column
* @return float|int
* @return mixed
* @static
*/
public static function sum($column){
Expand All @@ -4849,7 +4876,7 @@ public static function sum($column){
* Retrieve the average of the values of a given column.
*
* @param string $column
* @return float|int
* @return mixed
* @static
*/
public static function avg($column){
Expand All @@ -4860,7 +4887,7 @@ public static function avg($column){
* Alias for the "avg" method.
*
* @param string $column
* @return float|int
* @return mixed
* @static
*/
public static function average($column){
Expand All @@ -4872,13 +4899,25 @@ public static function average($column){
*
* @param string $function
* @param array $columns
* @return float|int
* @return mixed
* @static
*/
public static function aggregate($function, $columns = array()){
return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
}

/**
* Execute a numeric aggregate function on the database.
*
* @param string $function
* @param array $columns
* @return float|int
* @static
*/
public static function numericAggregate($function, $columns = array()){
return \Illuminate\Database\Query\Builder::numericAggregate($function, $columns);
}

/**
* Insert a new record into the database.
*
Expand Down Expand Up @@ -5747,7 +5786,7 @@ public static function resolvePolicy($class){
}

/**
* Get a guard instance for the given user.
* Get a gate instance for the given user.
*
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
* @return static
Expand Down Expand Up @@ -7172,7 +7211,7 @@ public static function input($key = null, $default = null){
}

/**
* Get a subset of the items from the input data.
* Get a subset containing the provided keys with values from the input data.
*
* @param array|mixed $keys
* @return array
Expand Down Expand Up @@ -7254,7 +7293,7 @@ public static function allFiles(){
*
* @param string $key
* @param mixed $default
* @return \Symfony\Component\HttpFoundation\File\UploadedFile|array|null
* @return \Illuminate\Http\UploadedFile|array|null
* @static
*/
public static function file($key = null, $default = null){
Expand Down Expand Up @@ -11560,7 +11599,7 @@ public static function input($key = null, $default = null){
}

/**
* Get a subset of the items from the input data.
* Get a subset containing the provided keys with values from the input data.
*
* @param array|mixed $keys
* @return array
Expand Down Expand Up @@ -11642,7 +11681,7 @@ public static function allFiles(){
*
* @param string $key
* @param mixed $default
* @return \Symfony\Component\HttpFoundation\File\UploadedFile|array|null
* @return \Illuminate\Http\UploadedFile|array|null
* @static
*/
public static function file($key = null, $default = null){
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ protected function validator(array $data)
'affiliation_id' => 'required',
'email' => 'required|email|appropriate_email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
'g-recaptcha-response' => 'required|recaptcha',
],
[
'name_first.required' => 'The first name is required',
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"zizaco/entrust": "dev-laravel-5",
"fzaninotto/faker": "~1.4",
"tymon/jwt-auth": "0.5.*",
"delatbabel/elocryptfive": "1.5"
"delatbabel/elocryptfive": "1.5",
"greggilbert/recaptcha": "dev-master"
},
"require-dev": {
"mockery/mockery": "0.9.*",
Expand Down
Loading

0 comments on commit 6316454

Please sign in to comment.