Skip to content

Commit

Permalink
Fix some conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
heimdallrj committed May 29, 2017
2 parents 08c6c9a + a48a110 commit 92abfb3
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 4,211 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_SECRET=

NOCAPTCHA_SECRET=6LfdQSMUAAAAAAT5cKXa7lI3koiFy4c5BP7BX3m8
NOCAPTCHA_SITEKEY=6LfdQSMUAAAAAOP31dkmdZJeNvDghlBfqJsHT5M-
12 changes: 11 additions & 1 deletion app/Http/Controllers/DonationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,23 @@ public function add()
*/
public function save(Request $request)
{
$messages = [
'name.required' => 'නම ඇතුලත් කිරීම අනිවාර්යයි',
'telephone.required' => 'දුරකථන අංක ඇතුලත් කිරීම අනිවාර්යයි',
'address.required' => 'ලිපිනය ඇතුලත් කිරීම අනිවාර්යයි',
'city.required' => 'නගරය/ප්‍රා.ලේ කොට්ටාසය ඇතුලත් කිරීම අනිවාර්යයි',
'needs.required' => 'අවශ්‍යතා ඇතුලත් කිරීම අනිවාර්යයි',
'g-recaptcha-response.required' => 'ඔබව තහවුරු කිරීම අනිවාර්යයි'
];

$validator = Validator::make($request->all(), [
'name' => 'required|max:100',
'telephone' => 'required|max:100',
'address' => 'required|max:100',
'city' => 'required|max:50',
'donation' => 'required',
]);
'g-recaptcha-response' => 'required|captcha'
], $messages);

if ($validator->fails()) {
return redirect('/donations/add')
Expand Down
14 changes: 12 additions & 2 deletions app/Http/Controllers/NeedsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,23 @@ public function add()
*/
public function save(Request $request)
{
$messages = [
'name.required' => 'නම ඇතුලත් කිරීම අනිවාර්යයි',
'telephone.required' => 'දුරකථන අංක ඇතුලත් කිරීම අනිවාර්යයි',
'address.required' => 'ලිපිනය ඇතුලත් කිරීම අනිවාර්යයි',
'city.required' => 'නගරය/ප්‍රා.ලේ කොට්ටාසය ඇතුලත් කිරීම අනිවාර්යයි',
'needs.required' => 'ආධාර විස්තරය ඇතුලත් කිරීම අනිවාර්යයි',
'g-recaptcha-response.required' => 'ඔබව තහවුරු කිරීම අනිවාර්යයි'
];

$validator = Validator::make($request->all(), [
'name' => 'required|max:100',
'telephone' => 'required|max:100',
'address' => 'required|max:100',
'city' => 'required|max:50',
'needs' => 'required'
]);
'needs' => 'required',
'g-recaptcha-response' => 'required|captcha'
], $messages);

if ($validator->fails()) {
return redirect('/needs/add')
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0"
"laravel/tinker": "~1.0",
"anhskohbo/no-captcha": "^2.3"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
Expand Down
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
* Package Service Providers...
*/
Laravel\Tinker\TinkerServiceProvider::class,
Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,

/*
* Application Service Providers...
Expand Down
180 changes: 0 additions & 180 deletions public/datatable/dataTables.bootstrap.min.css

This file was deleted.

76 changes: 0 additions & 76 deletions public/datatable/dataTables.bootstrap.min.js

This file was deleted.

Loading

0 comments on commit 92abfb3

Please sign in to comment.