diff --git a/app/Http/Controllers/PostController.php b/app/Http/Controllers/PostController.php index 173738d..3aba9f0 100644 --- a/app/Http/Controllers/PostController.php +++ b/app/Http/Controllers/PostController.php @@ -36,5 +36,6 @@ public function getDeletePost($post_id) $post->delete(); return redirect()->route('dashboard')->with(['message' => 'The post successfully deleted!']); } + } - + \ No newline at end of file diff --git a/public/src/js/app.js b/public/src/js/app.js new file mode 100644 index 0000000..8ff7cea --- /dev/null +++ b/public/src/js/app.js @@ -0,0 +1,7 @@ +$('.post') + .find('.interaction') + .find('a') + .eq(2) + .on('clink', function() { + console.log("it works!"); + }); diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 0b72551..476aefb 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -1,7 +1,9 @@ @extends('layouts.master') @section('content') -

Your information
id : {{auth()->user()->id}} , first name : {{auth()->user()->first_name}} , email : {{auth()->user()->email}}

+

Your information +
id : {{auth()->user()->id}} , first name : {{auth()->user()->first_name}} , email : + {{auth()->user()->email}}


@include('includes.dashboardNavigation') @include('includes.message-block') @@ -45,4 +47,23 @@ + + @endsection \ No newline at end of file diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index 4b00e0f..f801095 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -1,20 +1,30 @@ - - - + + - + - - @yield('title') - - - + + + + + + @yield('title') + + + + @include('includes.header') -
- @yield('content') -
- - +
+ @yield('content') +
+ + + + + + \ No newline at end of file