Skip to content

Commit

Permalink
Update post view
Browse files Browse the repository at this point in the history
  • Loading branch information
subhadipghorui committed Jan 25, 2021
1 parent e900c28 commit 99b813a
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 31 deletions.
11 changes: 6 additions & 5 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
'dump' => [
'dump_binary_path' => 'C:/xampp/mysql/bin/', // only the path, so without `mysqldump` or `pg_dump`
'use_single_transaction',
'timeout' => 60 * 5, // 5 minute timeout
],
// uncomment on local dev
// 'dump' => [
// 'dump_binary_path' => 'C:/xampp/mysql/bin/', // only the path, so without `mysqldump` or `pg_dump`
// 'use_single_transaction',
// 'timeout' => 60 * 5, // 5 minute timeout
// ],
],

'pgsql' => [
Expand Down
2 changes: 1 addition & 1 deletion resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class="col-lg-6 flex-row d-flex meta-right no-padding justify-content-end"
<div class="detail">
<a href="{{route('post', $post->slug)}}"><h4 class="pb-20">{{$post->title}}</h4></a>
<p>
{!! Str::limit($post->body, 400) !!}
{{-- {!! Str::limit($post->body, 400) !!} --}}
</p>
<p class=" footer"="">
<br>
Expand Down
12 changes: 6 additions & 6 deletions resources/views/layouts/frontend/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<link rel="stylesheet" href="{{asset('frontend/css/main.css')}}" />
<link rel="stylesheet" href="{{asset('frontend/css/wyswyg-post.css')}}" />
{{-- online --}}
<link rel="stylesheet"
{{-- <link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script> --}}

{{-- Local --}}
<link rel="stylesheet"
Expand All @@ -45,10 +45,10 @@
<link rel="stylesheet" href="{{ asset('frontend/codesnippet/lib/highlight/styles/github.css') }}">
<style>
@media only screen and (min-width: 790px) {
.menu1{
/* border: 1px solid #333; */
margin-left: -5rem;
}
.menu1{
/* border: 1px solid #333; */
margin-left: -5rem;
}
}
.c1{
color: #007bff;
Expand Down
14 changes: 6 additions & 8 deletions resources/views/post.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@
<div class="single-page-post">
<img class="img-fluid" src="{{asset('storage/post/'.$post->image)}}" alt="{{$post->image}}" />
<div class="top-wrapper">
<div class="row d-flex justify-content-between">
<h2 class="col-lg-8 col-md-12 text-uppercase">
{{$post->title}}
</h2>
<div
class="col-lg-4 col-md-12 right-side d-flex justify-content-end"
>
<h2 class="col-lg-12 col-md-12 text-uppercase">
{{$post->title}}
</h2>
<div class="row d-flex justify-content-between pl-4">
<h4 class="col-lg-8 col-md-12 text-muted mt-3">{{$post->category->name}}</h4>
<div class="col-lg-4 col-md-12 right-side d-flex justify-content-end">
<div class="desc">
<h2>{{$post->user->name}}</h2>
<h3>{{$post->created_at->diffForHumans()}}</h3>
Expand All @@ -50,7 +49,6 @@ class="col-lg-4 col-md-12 right-side d-flex justify-content-end"
</div>
</div>
</div>
<h4 class="text-muted mt-3">{{$post->category->name}}</h4>
</div>
<div class="tags">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/posts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</h4></a
>
<p>
{!! Str::limit($post->body, 400) !!}
{{-- {!! Str::limit($post->body, 400) !!} --}}
</p>
<p class="footer pt-20">
<i class="fa fa-heart-o" aria-hidden="true"></i>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</h4></a
>
<p>
{!! Str::limit($post->body, 400) !!}
{{-- {!! Str::limit($post->body, 400) !!} --}}
</p>
<p class="footer pt-20">
<i class="fa fa-heart-o" aria-hidden="true"></i>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/tagPosts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</h4></a
>
<p>
{!!Str::limit($tag->post->body, 300)!!}
{{-- {!!Str::limit($tag->post->body, 300)!!} --}}
</p>
<p class="footer pt-20">
<i class="fa fa-heart-o" aria-hidden="true"></i>
Expand Down
16 changes: 8 additions & 8 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@


// Send Mail
Route::get('/send', function(){
$post = Post::findOrFail(7);
// Send Mail
Mail::to('user@user.com')
->queue(new NewPost($post));

return (new App\Mail\NewPost($post))->render();
});
// Route::get('/send', function(){
// $post = Post::findOrFail(7);
// // Send Mail
// Mail::to('user@user.com')
// ->queue(new NewPost($post));

// return (new App\Mail\NewPost($post))->render();
// });

0 comments on commit 99b813a

Please sign in to comment.