That worked, but now the new entry into the data table is being put on top of the old data, but it used to add the new entries at the bottom of the table. Can I fix that? ...
Seen here:
https://i.stack.imgur.com/vciG0.jpg
Also...
Let me know if I have to begin a new discussion for this one?
And
My body data is including the HTML when it's input to my phpMyAdmin...
Here's what I'm talking about ...
https://i.stack.imgur.com/4uw9b.jpg
My body form in my create.php has "{!!" at the being and "!!}", I was under the impression that the "{!!" and "!!}" care of that for me.
create.blade.php
<div class='form-group'>
{{ Form::label('body', 'Body')}}
{!! Form::textarea('body', '', ['id' => 'article-ckeditor', 'class' => 'form-control space', 'placeholder' => 'Body Text', 'required' =>'',])!!}
</div>
and here's my store function
public function store(Request $request)
{
$this->validate($request, array(
'title' => 'required|max:255',
'slug' => 'required|alpha_dash|min:5|max:255|unique:posts,slug',
'category_id' => 'required|integer',
'body' => 'required'
));
//create Post
$post = new Post;
$post->title = $request->title;
$post->slug = $request->slug;
$post->category_id = $request->category_id;
$post->excerpt = str_limit($request->body, 100);
$post->body = $request->body;
$post->author_id = auth()->user()->id;
$post->save();
return redirect('/posts')->with('success', 'Your post created created successfully');