Skip to content

Commit d15b0af

Browse files
committed
.
1 parent 9cb0108 commit d15b0af

File tree

13 files changed

+154
-44
lines changed

13 files changed

+154
-44
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<a href="https://packagist.org/packages/laravel-frontend-presets/light-bootstrap-dashboard"><img src="https://poser.pugx.org/laravel-frontend-presets/light-bootstrap-dashboard/v/stable.svg" alt="Latest Stable Version"></a> ![license](https://img.shields.io/badge/license-MIT-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/laravel-frontend-presets/light-bootstrap-dashboard.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/light-bootstrap-dashboard/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/laravel-frontend-presets/light-bootstrap-dashboard.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/light-bootstrap-dashboard/issues?q=is%3Aissue+is%3Aclosed)
44

5-
*Frontend version*: Light Bootstrap Dashboard v2.1.1. More info at https://www.creative-tim.com/product/light-bootstrap-dashboard
5+
*Frontend version*: Light Bootstrap Dashboard v2.1.1. More info at https://www.creative-tim.com/product/light-bootstrap-dashboard/?ref=lbdl-readme
66

77
![Product Image](https://github.com/creativetimofficial/public-assets/raw/master/light-bootstrap-dashboard-laravel/intro.gif)
88

src/light-bootstrap-stubs/app/Http/Controllers/Auth/ForgotPasswordController.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Http\Controllers\Controller;
66
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
7+
use Illuminate\Http\Request;
78

89
class ForgotPasswordController extends Controller
910
{
@@ -29,4 +30,27 @@ public function __construct()
2930
{
3031
$this->middleware('guest');
3132
}
33+
34+
/**
35+
* Send a reset link to the given user.
36+
*
37+
* @param \Illuminate\Http\Request $request
38+
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
39+
*/
40+
public function sendResetLinkEmail(Request $request)
41+
{
42+
43+
$this->validateEmail($request);
44+
return back()->withErrors(__('You cannot send password reset email in demo version'));
45+
// We will send the password reset link to this user. Once we have attempted
46+
// to send the link, we will examine the response then see the message we
47+
// need to show to the user. Finally, we'll send out a proper response.
48+
$response = $this->broker()->sendResetLink(
49+
$this->credentials($request)
50+
);
51+
52+
return $response == Password::RESET_LINK_SENT
53+
? $this->sendResetLinkResponse($request, $response)
54+
: $this->sendResetLinkFailedResponse($request, $response);
55+
}
3256
}

src/light-bootstrap-stubs/resources/assets/css/light-bootstrap-dashboard.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Light Bootstrap Dashboard - v2.0.1
33
=========================================================
44
5-
Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard
5+
Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard-laravel
66
Copyright 2019 Creative Tim (https://www.creative-tim.com) & Updivision (https://www.updivision.com)
7-
Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard/blob/master/LICENSE)
7+
Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard-laravel/blob/master/LICENSE)
88
99
Coded by Creative Tim & Updivision
1010

src/light-bootstrap-stubs/resources/assets/js/light-bootstrap-dashboard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Light Bootstrap Dashboard - v2.0.1
33
// =========================================================
44
//
5-
// Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard
5+
// Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard-laravel
66
// Copyright 2019 Creative Tim (https://www.creative-tim.com) & Updivision (https://www.updivision.com)
7-
// Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard/blob/master/LICENSE)
7+
// Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard-laravel/blob/master/LICENSE)
88
//
9-
// Coded by Creative Tim & Updivision
9+
// Coded by Creative Tim & Updivision
1010
//
1111
// =========================================================
1212
//
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@if ($errors->has($key))
2+
<div class="alert alert-danger alert-dismissible fade show" role="alert">
3+
{{ $errors->first($key) }} <br>
4+
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
5+
<span aria-hidden="true">&times;</span>
6+
</button>
7+
</div>
8+
@endif
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@if (!\Schema::hasTable((new \App\User)->getTable()))
2+
<div class="alert alert-danger fade show" role="alert">
3+
{{ __('You did not run the migrations and seeders! The login information will not be available!') }}
4+
</div>
5+
@endif

src/light-bootstrap-stubs/resources/views/auth/login.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div class="form-group">
4242
<div class="form-check">
4343
<label class="form-check-label d-flex align-items-center">
44-
<input class="form-check-input" type="checkbox" name="remember" id="remember" checked>
44+
<input class="form-check-input" type="checkbox" name="remember" id="remember">
4545
<span class="form-check-sign"></span>
4646
{{ __('Remember me') }}
4747
</label>
@@ -58,7 +58,7 @@
5858
{{ __('Forgot password?') }}
5959
</a>
6060
<a class="btn btn-link" style="color:#23CCEF" href="{{ route('register') }}">
61-
{{ __('Register') }}
61+
{{ __('Create account') }}
6262
</a>
6363
</div>
6464

src/light-bootstrap-stubs/resources/views/auth/passwords/email.blade.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,8 @@
1212
<div class="card-header">{{ __('Reset Password') }}</div>
1313

1414
<div class="card-body">
15-
@if (session('status'))
16-
<div class="alert alert-success" role="alert">
17-
{{ session('status') }}
18-
</div>
19-
@elseif(session('error'))
20-
<div class="alert alert-danger" role="alert">
21-
{{ session('error') }}
22-
</div>
23-
@endif
15+
@include('alerts.success')
16+
@include('alerts.errors' )
2417
<div class="form-group row">
2518
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
2619

src/light-bootstrap-stubs/resources/views/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</div>
5757

5858
<div class="form-group">
59-
<input type="password" name="password" class="form-control" placeholder="Password" required autofocus>
59+
<input type="password" name="password" class="form-control" required >
6060
</div>
6161
<div class="form-group">
6262
<input type="password" name="password_confirmation" placeholder="Password Confirmation" class="form-control" required autofocus>

src/light-bootstrap-stubs/resources/views/layouts/app.blade.php

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,84 @@
3030
<link href="{{ asset('light-bootstrap/css/light-bootstrap-dashboard.css?v=2.0.0') }} " rel="stylesheet" />
3131
<!-- CSS Just for demo purpose, don't include it in your project -->
3232
<link href="{{ asset('light-bootstrap/css/demo.css') }}" rel="stylesheet" />
33+
34+
<!-- Canonical SEO -->
35+
<link rel="canonical" href="https://www.creative-tim.com/product/light-bootstrap-dashboard-laravel" />
36+
<!-- Social tags -->
37+
<meta name="keywords" content="creative tim, html dashboard, html css dashboard, web dashboard, bootstrap 4 dashboard, bootstrap 4, css3 dashboard, bootstrap 4 admin, light bootstrap dashboard bootstrap 4 dashboard, frontend, responsive bootstrap 4 dashboard, light bootstrap design, light bootstrap dashboard bootstrap 4 dashboard">
38+
<meta name="description" content="Light Bootstrap Dashboard PRO is a beautiful Bootstrap 4 admin dashboard with a large number of components, designed to look beautiful, clean and organized. If you are looking for a tool to manage dates about your business, this dashboard is the thing for you.">
39+
40+
41+
<!-- Schema.org markup for Google+ -->
42+
<meta itemprop="name" content="Light Bootstrap Dashboard PRO by Creative Tim">
43+
<meta itemprop="description" content="Light Bootstrap Dashboard PRO is a beautiful Bootstrap 4 admin dashboard with a large number of components, designed to look beautiful, clean and organized. If you are looking for a tool to manage dates about your business, this dashboard is the thing for you.">
44+
45+
<meta itemprop="image" content="https://s3.amazonaws.com/creativetim_bucket/products/72/opt_nudp_thumbnail.jpg">
46+
47+
48+
<!-- Twitter Card data -->
49+
<meta name="twitter:card" content="product">
50+
<meta name="twitter:site" content="@creativetim">
51+
<meta name="twitter:title" content="[Light Bootstrap Dashboard PRO] by Creative Tim">
52+
53+
<meta name="twitter:description" content="Light Bootstrap Dashboard PRO is a beautiful Bootstrap 4 admin dashboard with a large number of components, designed to look beautiful, clean and organized. If you are looking for a tool to manage dates about your business, this dashboard is the thing for you.">
54+
<meta name="twitter:creator" content="@creativetim">
55+
<meta name="twitter:image" content="https://s3.amazonaws.com/creativetim_bucket/products/72/opt_nudp_thumbnail.jpg">
56+
57+
58+
<!-- Open Graph data -->
59+
<meta property="fb:app_id" content="655968634437471">
60+
<meta property="og:title" content="Light Bootstrap Dashboard PRO by Creative Tim" />
61+
<meta property="og:type" content="article" />
62+
<meta property="og:url" content="http://demos.creative-tim.com/light-bootstrap-dashboard-pro/examples/dashboard.html" />
63+
<meta property="og:image" content="https://s3.amazonaws.com/creativetim_bucket/products/72/opt_nudp_thumbnail.jpg"/>
64+
<meta property="og:description" content="Light Bootstrap Dashboard PRO is a beautiful Bootstrap 4 admin dashboard with a large number of components, designed to look beautiful, clean and organized. If you are looking for a tool to manage dates about your business, this dashboard is the thing for you." />
65+
<meta property="og:site_name" content="Creative Tim" />
66+
<!-- Google Tag Manager -->
67+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
68+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
69+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
70+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
71+
})(window,document,'script','dataLayer','GTM-NKDMSK6');</script>
72+
<!-- End Google Tag Manager -->
73+
74+
<script>
75+
// Facebook Pixel Code Don't Delete
76+
! function(f, b, e, v, n, t, s) {
77+
if (f.fbq) return;
78+
n = f.fbq = function() {
79+
n.callMethod ?
80+
n.callMethod.apply(n, arguments) : n.queue.push(arguments)
81+
};
82+
if (!f._fbq) f._fbq = n;
83+
n.push = n;
84+
n.loaded = !0;
85+
n.version = '2.0';
86+
n.queue = [];
87+
t = b.createElement(e);
88+
t.async = !0;
89+
t.src = v;
90+
s = b.getElementsByTagName(e)[0];
91+
s.parentNode.insertBefore(t, s)
92+
}(window,
93+
document, 'script', '//connect.facebook.net/en_US/fbevents.js');
94+
try {
95+
fbq('init', '111649226022273');
96+
fbq('track', "PageView");
97+
} catch (err) {
98+
console.log('Facebook Track Error:', err);
99+
}
100+
</script>
33101
</head>
34102

35103
<body>
104+
<!-- Google Tag Manager (noscript) -->
105+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NKDMSK6"
106+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
107+
<!-- End Google Tag Manager (noscript) -->
108+
<noscript>
109+
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=111649226022273&ev=PageView&noscript=1" />
110+
</noscript>
36111

37112
<div class="wrapper @if (!auth()->check() || request()->route()->getName() == "") wrapper-full-page @endif">
38113

0 commit comments

Comments
 (0)