Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
abalsh
/
Garlix
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cec5ff99
authored
Apr 20, 2019
by
Florian Shllaku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrations and port forwarding (ssh tunneling)
parent
c421b1d2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
24 deletions
app/Http/Controllers/SendEmailController.php
config/database.php
config/mail.php
database/migrations/2019_04_20_002128_create_currency_table.php
resources/views/currency.blade.php
resources/views/header.blade.php
vendor/composer/autoload_classmap.php
vendor/composer/autoload_static.php
app/Http/Controllers/SendEmailController.php
View file @
cec5ff99
...
...
@@ -24,6 +24,7 @@ class SendEmailController extends Controller
$data
=
array
(
'name'
=>
$request
->
name
,
'message'
=>
$request
->
message
,
'email'
=>
$request
->
email
,
);
Mail
::
to
(
'garlix00@gmail.com'
)
->
send
(
new
SendMail
(
$data
));
...
...
config/database.php
View file @
cec5ff99
...
...
@@ -42,8 +42,8 @@ return [
'mysql'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST'
,
'
127.0.0.1
'
),
'port'
=>
env
(
'DB_PORT'
,
'3306'
),
'host'
=>
env
(
'DB_HOST'
,
'
localhost
'
),
'port'
=>
env
(
'DB_PORT'
,
'3306
0
'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
...
...
config/mail.php
View file @
cec5ff99
...
...
@@ -84,9 +84,9 @@ return [
|
*/
'username'
=>
"garlix00@gmail.com"
,
'username'
=>
env
(
'MAIL_USERNAME'
)
,
'password'
=>
'garlix12345!@#$%'
,
'password'
=>
env
(
'MAIL_PASSWORD'
)
,
/*
|--------------------------------------------------------------------------
...
...
database/migrations/2019_04_20_002128_create_currency_table.php
0 → 100644
View file @
cec5ff99
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateCurrencyTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'currency'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'ID'
);
$table
->
char
(
'iso'
,
3
);
$table
->
char
(
'name'
,
200
);
$table
->
float
(
'rates'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'currency'
);
}
}
\ No newline at end of file
resources/views/currency.blade.php
View file @
cec5ff99
...
...
@@ -3,29 +3,31 @@
@
section
(
'content'
)
<
div
class
="
card
">
<div class="
card
-
body
">
<select class="
mdb
-
select
md
-
form
">
<option value="" disabled selected>Choose your option</option>
<option>USD</option>
<option>EUR</option>
<option>CHF</option>
<option>NOK</option>
<option>GBP</option>
<option>AED</option>
<option>SEK</option>
</select>
<label for="
FormControlSelect1
">Convert From</label>
<div class="
input
-
group
">
<br>
<select class="
form
-
control
" id="
FormControlSelect1
">
<option>USD</option>
<option>ETH</option>
<option>XRP</option>
<option>ADA</option>
<option>LTC</option>
<option>DASH</option>
<option>USDT</option>
</select>
</div>
<input type="
number
" class="
form
-
control
form
-
control
-
lg
mx
-
3
" value="">
<div class="
form
-
group
">
<label for="
FormControlSelect1
">To</label>
<div class="
input
-
group
">
<br> <br>
<label for="
FormControlSelect1
">To</label>
<br>
<select class="
form
-
control
" id="
FormControlSelect1
">
<option>
USD
</option>
<option>E
UR
</option>
<option>
CHF
</option>
<option>
NOK
</option>
<option>
GBP
</option>
<option>
AED
</option>
<option>
SEK
</option>
<option>
BTC
</option>
<option>E
TH
</option>
<option>
XRP
</option>
<option>
ADA
</option>
<option>
LTC
</option>
<option>
DASH
</option>
<option>
USDT
</option>
</select>
</div>
<input type="
number
" class="
form
-
control
form
-
control
-
lg
mx
-
3
" value="">
...
...
resources/views/header.blade.php
View file @
cec5ff99
...
...
@@ -16,6 +16,7 @@
<link
href=
"css\main.css"
rel=
"stylesheet"
>
@if(\Request::is('contact'))
<link
href=
"css\contact.css"
rel=
"stylesheet"
>
@endif
@if(\Request::is('crypto'))
<link
href=
"css\crypto.css"
rel=
"stylesheet"
>
@endif
@if(\Request::is('currency'))
<link
href=
"css\crypto.css"
rel=
"stylesheet"
>
@endif
@if(\Request::is('subscribe'))
<link
href=
"css\subscribe.css"
rel=
"stylesheet"
>
@endif
</head>
<body
class=
"text-center"
background=
"img\background.jpg"
>
...
...
vendor/composer/autoload_classmap.php
View file @
cec5ff99
...
...
@@ -6,6 +6,7 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir
=
dirname
(
$vendorDir
);
return
array
(
'App\\Admin'
=>
$baseDir
.
'/app/Admin.php'
,
'App\\Console\\Kernel'
=>
$baseDir
.
'/app/Console/Kernel.php'
,
'App\\Exceptions\\Handler'
=>
$baseDir
.
'/app/Exceptions/Handler.php'
,
'App\\Http\\Controllers\\Auth\\ForgotPasswordController'
=>
$baseDir
.
'/app/Http/Controllers/Auth/ForgotPasswordController.php'
,
...
...
@@ -14,6 +15,7 @@ return array(
'App\\Http\\Controllers\\Auth\\ResetPasswordController'
=>
$baseDir
.
'/app/Http/Controllers/Auth/ResetPasswordController.php'
,
'App\\Http\\Controllers\\Auth\\VerificationController'
=>
$baseDir
.
'/app/Http/Controllers/Auth/VerificationController.php'
,
'App\\Http\\Controllers\\Controller'
=>
$baseDir
.
'/app/Http/Controllers/Controller.php'
,
'App\\Http\\Controllers\\SendEmailController'
=>
$baseDir
.
'/app/Http/Controllers/SendEmailController.php'
,
'App\\Http\\Kernel'
=>
$baseDir
.
'/app/Http/Kernel.php'
,
'App\\Http\\Middleware\\Authenticate'
=>
$baseDir
.
'/app/Http/Middleware/Authenticate.php'
,
'App\\Http\\Middleware\\CheckForMaintenanceMode'
=>
$baseDir
.
'/app/Http/Middleware/CheckForMaintenanceMode.php'
,
...
...
@@ -22,6 +24,7 @@ return array(
'App\\Http\\Middleware\\TrimStrings'
=>
$baseDir
.
'/app/Http/Middleware/TrimStrings.php'
,
'App\\Http\\Middleware\\TrustProxies'
=>
$baseDir
.
'/app/Http/Middleware/TrustProxies.php'
,
'App\\Http\\Middleware\\VerifyCsrfToken'
=>
$baseDir
.
'/app/Http/Middleware/VerifyCsrfToken.php'
,
'App\\Mail\\SendMail'
=>
$baseDir
.
'/app/Mail/SendMail.php'
,
'App\\Providers\\AppServiceProvider'
=>
$baseDir
.
'/app/Providers/AppServiceProvider.php'
,
'App\\Providers\\AuthServiceProvider'
=>
$baseDir
.
'/app/Providers/AuthServiceProvider.php'
,
'App\\Providers\\BroadcastServiceProvider'
=>
$baseDir
.
'/app/Providers/BroadcastServiceProvider.php'
,
...
...
vendor/composer/autoload_static.php
View file @
cec5ff99
...
...
@@ -360,6 +360,7 @@ class ComposerStaticInitaaf7a2d0aa0540e4f74d52dc30d67caa
);
public
static
$classMap
=
array
(
'App\\Admin'
=>
__DIR__
.
'/../..'
.
'/app/Admin.php'
,
'App\\Console\\Kernel'
=>
__DIR__
.
'/../..'
.
'/app/Console/Kernel.php'
,
'App\\Exceptions\\Handler'
=>
__DIR__
.
'/../..'
.
'/app/Exceptions/Handler.php'
,
'App\\Http\\Controllers\\Auth\\ForgotPasswordController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Auth/ForgotPasswordController.php'
,
...
...
@@ -368,6 +369,7 @@ class ComposerStaticInitaaf7a2d0aa0540e4f74d52dc30d67caa
'App\\Http\\Controllers\\Auth\\ResetPasswordController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Auth/ResetPasswordController.php'
,
'App\\Http\\Controllers\\Auth\\VerificationController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Auth/VerificationController.php'
,
'App\\Http\\Controllers\\Controller'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Controller.php'
,
'App\\Http\\Controllers\\SendEmailController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/SendEmailController.php'
,
'App\\Http\\Kernel'
=>
__DIR__
.
'/../..'
.
'/app/Http/Kernel.php'
,
'App\\Http\\Middleware\\Authenticate'
=>
__DIR__
.
'/../..'
.
'/app/Http/Middleware/Authenticate.php'
,
'App\\Http\\Middleware\\CheckForMaintenanceMode'
=>
__DIR__
.
'/../..'
.
'/app/Http/Middleware/CheckForMaintenanceMode.php'
,
...
...
@@ -376,6 +378,7 @@ class ComposerStaticInitaaf7a2d0aa0540e4f74d52dc30d67caa
'App\\Http\\Middleware\\TrimStrings'
=>
__DIR__
.
'/../..'
.
'/app/Http/Middleware/TrimStrings.php'
,
'App\\Http\\Middleware\\TrustProxies'
=>
__DIR__
.
'/../..'
.
'/app/Http/Middleware/TrustProxies.php'
,
'App\\Http\\Middleware\\VerifyCsrfToken'
=>
__DIR__
.
'/../..'
.
'/app/Http/Middleware/VerifyCsrfToken.php'
,
'App\\Mail\\SendMail'
=>
__DIR__
.
'/../..'
.
'/app/Mail/SendMail.php'
,
'App\\Providers\\AppServiceProvider'
=>
__DIR__
.
'/../..'
.
'/app/Providers/AppServiceProvider.php'
,
'App\\Providers\\AuthServiceProvider'
=>
__DIR__
.
'/../..'
.
'/app/Providers/AuthServiceProvider.php'
,
'App\\Providers\\BroadcastServiceProvider'
=>
__DIR__
.
'/../..'
.
'/app/Providers/BroadcastServiceProvider.php'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment