Skip to content

Commit 73fb922

Browse files
Merge pull request #6 from laravel-frontend-presets/master
Update Laravel 6.x
2 parents 5f0ac26 + 644d309 commit 73fb922

File tree

8 files changed

+32
-9
lines changed

8 files changed

+32
-9
lines changed

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#511B26",
4+
"titleBar.activeBackground": "#712635",
5+
"titleBar.activeForeground": "#FEFBFC"
6+
}
7+
}

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ All notable changes to `Material Dashboard` frontend preset for Laravel will be
1111
- User CRUD
1212

1313
## Version 1.0.0 - Version 1.0.4
14-
- Bugfixes
14+
- Bugfixes
15+
16+
## Version 1.0.5
17+
- Add link to pro theme
18+
19+
## Version 1.0.6 - 2019-09-23
20+
- Update to Laravel 6.x

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "https://github.com/creativetimofficial/material-dashboard-laravel",
66
"keywords": ["Laravel", "Preset", "Material"],
77
"require": {
8-
"laravel/framework": "^5.5"
8+
"laravel/framework": "^5.5 || ^6.0"
99
},
1010
"autoload": {
1111
"psr-4": {

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Material Dashboard Laravel - Free Frontend Preset for Laravel](https://material-dashboard-laravel.creative-tim.com/?ref=adnp-readme) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/home?status=Material%20Dashboard%20Laravel%20is%20a%20Free%20Frontend%20Preset%20for%20Laravel%20%E2%9D%A4%EF%B8%8F%0Ahttps%3A//material-dashboard-laravel.creative-tim.com/%20%23%material%20%23design%20%23dashboard%20%23laravel%20%23free%20via%20%40CreativeTim)
22

3-
<a href="https://packagist.org/packages/laravel-frontend-presets/material-dashboard"><img src="https://poser.pugx.org/laravel-frontend-presets/material-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/material-dashboard.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/material-dashboard/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/laravel-frontend-presets/material-dashboard.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/material-dashboard/issues?q=is%3Aissue+is%3Aclosed)
3+
![version](https://img.shields.io/badge/version-1.0.9-blue.svg) ![license](https://img.shields.io/badge/license-MIT-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/laravel-frontend-presets/material-dashboard.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/material-dashboard/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/laravel-frontend-presets/material-dashboard.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/material-dashboard/issues?q=is%3Aissue+is%3Aclosed)
44

55
*Frontend version*: Material Dashboard v2.1.1. More info at https://www.creative-tim.com/product/material-dashboard
66

@@ -21,7 +21,7 @@ If you don't already have an Apache local environment with PHP and MySQL, use on
2121
- Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/
2222

2323
Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
24-
And Laravel: https://laravel.com/docs/5.8/installation
24+
And Laravel: https://laravel.com/docs/6.x/installation
2525

2626
## Installation
2727

src/material-stubs/app/Http/Controllers/UserController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ public function edit(User $user)
6363
*/
6464
public function update(UserRequest $request, User $user)
6565
{
66+
$hasPassword = $request->get('password');
6667
$user->update(
6768
$request->merge(['password' => Hash::make($request->get('password'))])
68-
->except([$request->get('password') ? '' : 'password']
69+
->except([$hasPassword ? '' : 'password']
6970
));
7071

7172
return redirect()->route('user.index')->withStatus(__('User successfully updated.'));

src/material-stubs/resources/views/auth/verify.blade.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@
2020
{{ __('Before proceeding, please check your email for a verification link.') }}
2121

2222
@if (Route::has('verification.resend'))
23-
{{ __('If you did not receive the email') }}, <a href="{{ route('verification.resend') }}">{{ __('click here to request another') }}</a>
23+
{{ __('If you did not receive the email') }},
24+
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
25+
@csrf
26+
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button>.
27+
</form>
2428
@endif
2529
</p>
2630
</div>
2731
</div>
2832
</div>
2933
</div>
3034
</div>
31-
@endsection
35+
@endsection

src/material-stubs/resources/views/layouts/app.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@
8383
View Documentation
8484
</a>
8585
</li>
86+
<li class="button-container">
87+
<a href="https://www.creative-tim.com/product/material-dashboard-pro-laravel" target="_blank" class="btn btn-danger btn-block btn-round">
88+
Upgrade to PRO
89+
</a>
90+
</li>
8691
<li class="button-container github-star">
8792
<a class="github-button" href="https://github.com/creativetimofficial/material-dashboard-laravel" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star ntkme/github-buttons on GitHub">Star</a>
8893
</li>

src/material-stubs/resources/views/pages/upgrade.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
<a href="#" class="btn btn-round btn-fill btn-default disabled">Current Version</a>
118118
</td>
119119
<td class="text-center">
120-
<a target="_blank" href="javascript:void(0)" aria-disabled="true" class="btn btn-round btn-fill btn-info">Coming soon</a>
120+
<a target="_blank" href="https://www.creative-tim.com/product/material-dashboard-pro-laravel" aria-disabled="true" class="btn btn-round btn-fill btn-info">Upgrade to PRO</a>
121121
</td>
122122
</tr>
123123
</tbody>
@@ -129,4 +129,4 @@
129129
</div>
130130
</div>
131131
</div>
132-
@endsection
132+
@endsection

0 commit comments

Comments
 (0)