Skip to content

Commit

Permalink
fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 21, 2016
1 parent 1c229df commit 33edcab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
16 changes: 4 additions & 12 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

/*
|--------------------------------------------------------------------------
| Application Routes
Expand All @@ -26,7 +15,6 @@
use Illuminate\Http\Request;

Route::group(['middleware' => ['web']], function () {

/**
* Show Task Dashboard
*/
Expand All @@ -43,14 +31,17 @@
$validator = Validator::make($request->all(), [
'name' => 'required|max:255',
]);

if ($validator->fails()) {
return redirect('/')
->withInput()
->withErrors($validator);
}

$task = new Task;
$task->name = $request->name;
$task->save();

return redirect('/');
});

Expand All @@ -59,6 +50,7 @@
*/
Route::delete('/task/{id}', function ($id) {
Task::findOrFail($id)->delete();

return redirect('/');
});
});
23 changes: 11 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions resources/views/tasks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="form-group">
<div class="col-sm-offset-3 col-sm-6">
<button type="submit" class="btn btn-default">
<i class="fa fa-plus"></i>Add Task
<i class="fa fa-btn fa-plus"></i>Add Task
</button>
</div>
</div>
Expand Down Expand Up @@ -62,7 +62,7 @@
{{ method_field('DELETE') }}

<button type="submit" class="btn btn-danger">
<i class="fa fa-trash"></i>Delete
<i class="fa fa-btn fa-trash"></i>Delete
</button>
</form>
</td>
Expand Down

0 comments on commit 33edcab

Please sign in to comment.