Skip to content

Commit 08da241

Browse files
Merge pull request #11 from creativetimofficial/master
Readme
2 parents 72cd52f + ade304d commit 08da241

File tree

5 files changed

+481
-287
lines changed

5 files changed

+481
-287
lines changed

readme.md

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ After initializing a fresh instance of Laravel (and making all the necessary con
5454

5555
Register a user or login using **[email protected]** and **secret** and start testing the preset (make sure to run the migrations and seeders for these credentials to be available).
5656

57-
Besides the dashboard and the auth pages this preset also has a user management example and an edit profile page. All the necessary files (controllers, requests, views) are installed out of the box and all the needed routes are added to `routes/web.php`. Keep in mind that all of the features can be viewed once you login using the credentials provided above or by registering your own user.
57+
Besides the dashboard and the auth pages this preset also has an edit profile page. All the necessary files (controllers, requests, views) are installed out of the box and all the needed routes are added to `routes/web.php`. Keep in mind that all of the features can be viewed once you login using the credentials provided above or by registering your own user.
5858

5959
### Dashboard
6060

@@ -87,57 +87,6 @@ public function rules()
8787
];
8888
}
8989
```
90-
91-
### User management
92-
93-
The preset comes with a user management option out of the box. To access this click the "**User Management**" link in the left sidebar or add **/user** to the url.
94-
The first thing you will see is the listing of the existing users. You can add new ones by clicking the "**Add user**" button (above the table on the right). On the Add user page you will see the form that allows you to do this. All pages are generate using blade templates:
95-
96-
```
97-
<div class="row">
98-
<label class="col-sm-2 col-form-label">{{ __('Name') }}</label>
99-
<div class="col-sm-7">
100-
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}">
101-
<input class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" id="input-name" type="text" placeholder="{{ __('Name') }}" value="{{ old('name') }}" required="true" aria-required="true"/>
102-
@if ($errors->has('name'))
103-
<span id="name-error" class="error text-danger" for="input-name">{{ $errors->first('name') }}</span>
104-
@endif
105-
</div>
106-
</div>
107-
</div>
108-
```
109-
110-
Also validation rules were added so you will know exactly what to enter in the form fields (see `App\Http\Requests\UserRequest`). Note that these validation rules also apply for the user edit option.
111-
112-
```
113-
public function rules()
114-
{
115-
return [
116-
'name' => [
117-
'required', 'min:3'
118-
],
119-
'email' => [
120-
'required', 'email', Rule::unique((new User)->getTable())->ignore($this->route()->user->id ?? null)
121-
],
122-
'password' => [
123-
$this->route()->user ? 'nullable' : 'required', 'confirmed', 'min:6'
124-
]
125-
];
126-
}
127-
```
128-
129-
Once you add more users, the list will get bigger and for every user you will have edit and delete options (access these options by clicking the three dotted menu that appears at the end of every line).
130-
131-
All the sample code for the user management can be found in `App\Http\Controllers\UserController`. See store method example bellow:
132-
133-
```
134-
public function store(UserRequest $request, User $model)
135-
{
136-
$model->create($request->merge(['password' => Hash::make($request->get('password'))])->all());
137-
138-
return redirect()->route('user.index')->withStatus(__('User successfully created.'));
139-
}
140-
```
14190
## Table of Contents
14291

14392
* [Versions](#versions)
@@ -466,8 +415,6 @@ The documentation for the Material Dashboard Laravel is hosted at our [website](
466415
| edit.blade.php
467416
|
468417
\---users
469-
create.blade.php
470-
edit.blade.php
471418
index.blade.php
472419
```
473420

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</tr>
3939
<tr>
4040
<td>Users management</td>
41-
<td class="text-center"><i class="fa fa-check text-success"></i></td>
41+
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
4242
<td class="text-center"><i class="fa fa-check text-success"></i></td>
4343
</tr>
4444
<tr>
@@ -66,6 +66,16 @@
6666
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
6767
<td class="text-center"><i class="fa fa-check text-success"></i></td>
6868
</tr>
69+
<tr>
70+
<td>Notifications with Bootstrap Notify</td>
71+
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
72+
<td class="text-center"><i class="fa fa-check text-success"></i></td>
73+
</tr>
74+
<tr>
75+
<td>DataTables.net</td>
76+
<td class="text-center"><i class="fa fa-times text-danger"></i></td>
77+
<td class="text-center"><i class="fa fa-check text-success"></i></td>
78+
</tr>
6979
<tr>
7080
<td><h3 class="text-primary">Frontend</h3></td>
7181
<td class="text-center"></td>
@@ -129,4 +139,4 @@
129139
</div>
130140
</div>
131141
</div>
132-
@endsection
142+
@endsection

src/material-stubs/resources/views/users/create.blade.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/material-stubs/resources/views/users/edit.blade.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)