This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="col-md-12 contain nopadding"> | |
| <note-sidebar v-if="notes" :initialnotes="notes" @noteChosen="noteSelected"></note-sidebar> | |
| <note-editor v-if="firstNote" :note="firstNote"/> | |
| </div> | |
| </template> | |
| <script> | |
| import NoteEditor from './NoteEditor.vue'; | |
| import NoteSidebar from './NoteSidebar'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| Route::get('/notes',['as'=>'noteGet','uses'=>'NoteController@notes']); | |
| Route::post('/notes/create',['as'=>'noteCreate','uses'=>'NoteController@createNote']); | |
| Route::delete('/notes/delete/{id}',['as'=>'noteControl','uses'=>'NoteController@deleteNote']); | |
| Route::put('/notes/update/{id}',['as'=>'noteControl','uses'=>'NoteController@updateNote']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers; | |
| use App\Note; | |
| use Illuminate\Http\Request; | |
| class NoteController extends Controller | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateUsersTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateNotesTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fonts | |
| @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); | |
| // Variables | |
| @import "variables"; | |
| // Bootstrap | |
| @import "~bootstrap-sass/assets/stylesheets/bootstrap"; | |
| @import "./components/notes"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="{{ app()->getLocale() }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="csrf-token" content="{{ csrf_token()}}"> | |
| <title>Laravel</title> | |
| <!-- Fonts --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="col-md-9 nopadding"> | |
| <div class="col-md-12"> | |
| <input class="top-input" type="" name="" :value="note.title" v-model="note.title" @input="Updated"> | |
| </div> | |
| <textarea class="main-text" v-model="note.content"> | |
| </textarea> | |
| </div> | |
| </template> | |
| <script> |