Skip to content

Commit

Permalink
fixed the editing journal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gta191977649 committed Oct 19, 2017
1 parent 5d404bf commit af2cdb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/NotebooksController.php
Expand Up @@ -62,7 +62,7 @@ public function loadEditModal($id)
{
$user = Auth::user();
$notebook = $user->notebooks()->where('id', $id)->first();
return view('notebooks/modal-rename', ['notebook' => $notebook]);
return view('notebooks.modal-rename', ['notebook' => $notebook]);
}

public function loadCreateModal()
Expand Down
6 changes: 4 additions & 2 deletions routes/web.php
Expand Up @@ -20,10 +20,12 @@

Route::get('/notebooks','NotebooksController@index')->name('notebooks.index');
Route::post('/notebooks','NotebooksController@store');

Route::get('/notebooks/create','NotebooksController@loadCreateModal')->name('notebooks.create');
Route::get('/notebooks/{notebookID}/{allEntries?}','NotebooksController@show')->name('notebooks.show');
Route::get('/notebooks/rename/{id}','NotebooksController@loadEditModal')->name('notebooks.rename');

Route::get('/notebooks/{notebookID}/{allEntries?}','NotebooksController@show')->name('notebooks.show');

Route::get('/search','NotebooksController@search')->name('notebooks.search');

Route::put('/notebooks/{notebookID}','NotebooksController@update')->name('notebooks.update');
Expand Down

0 comments on commit af2cdb5

Please sign in to comment.