Below is my code: ` @foreach($posts as $post)
<tr>
<th></th>
<td></td>
<td> </td>
<td></td>
<td>
<a href="" class="btn btn-default btn-sm">View</a>
<a href="" class="btn btn-delete btn-sm">Edit</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="text-center">
</div>`
And below is the code in controller:
public function index()
{
$posts = Post::orderBy('id', 'desc')->paginate(5);
return view('posts.index')->withPosts($posts);
}
In spite of this, i do not get proper styling! Bootstrap styles not applied. See the image.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2P2ejX2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire