Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 33edcab

Browse files
committed
fix css
1 parent 1c229df commit 33edcab

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed

app/Http/routes.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
<?php
22

3-
/*
4-
|--------------------------------------------------------------------------
5-
| Routes File
6-
|--------------------------------------------------------------------------
7-
|
8-
| Here is where you will register all of the routes in an application.
9-
| It's a breeze. Simply tell Laravel the URIs it should respond to
10-
| and give it the controller to call when that URI is requested.
11-
|
12-
*/
13-
143
/*
154
|--------------------------------------------------------------------------
165
| Application Routes
@@ -26,7 +15,6 @@
2615
use Illuminate\Http\Request;
2716

2817
Route::group(['middleware' => ['web']], function () {
29-
3018
/**
3119
* Show Task Dashboard
3220
*/
@@ -43,14 +31,17 @@
4331
$validator = Validator::make($request->all(), [
4432
'name' => 'required|max:255',
4533
]);
34+
4635
if ($validator->fails()) {
4736
return redirect('/')
4837
->withInput()
4938
->withErrors($validator);
5039
}
40+
5141
$task = new Task;
5242
$task->name = $request->name;
5343
$task->save();
44+
5445
return redirect('/');
5546
});
5647

@@ -59,6 +50,7 @@
5950
*/
6051
Route::delete('/task/{id}', function ($id) {
6152
Task::findOrFail($id)->delete();
53+
6254
return redirect('/');
6355
});
6456
});

composer.lock

Lines changed: 11 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/tasks.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="form-group">
3030
<div class="col-sm-offset-3 col-sm-6">
3131
<button type="submit" class="btn btn-default">
32-
<i class="fa fa-plus"></i>Add Task
32+
<i class="fa fa-btn fa-plus"></i>Add Task
3333
</button>
3434
</div>
3535
</div>
@@ -62,7 +62,7 @@
6262
{{ method_field('DELETE') }}
6363

6464
<button type="submit" class="btn btn-danger">
65-
<i class="fa fa-trash"></i>Delete
65+
<i class="fa fa-btn fa-trash"></i>Delete
6666
</button>
6767
</form>
6868
</td>

0 commit comments

Comments
 (0)