Display Activity Feed In The Browser

Display Activity Feed In The Browser

Now that we have the logic in place to record user activity in the database, in this tutorial we will work on fetching that user activity from the database and rendering it to the browser. To begin, we’ll just verify that new activities are in fact being recorded by manually checking in the database. Once that is complete, we can alter our controller logic to fetch user activity from the database.…

Record User Activity To The Database

Record User Activity To The Database

Activity feeds are a really cool feature you see in a lot of different websites. The idea is there is a timeline so to speak of things a user has done in the application, and then that user or other users can look at the historical record of various actions taken. In this little forum application, we can set up a new activity when a user creates a new thread.…

Setting Permissions With Policy Objects

Setting Permissions With Policy Objects

We might have created a problem by letting any user in the system to delete any thread in the system. It would be better if a registered user could only delete threads that he or she created. This tutorial will look at how we can assign permissions to users in the system that will decide whether or not they are authorized to take an action such as delete a thread.…

How To Delete A Record From The Database

How To Delete A Record From The Database

We should add a way for a user to be able to delete their thread from the database if they choose to do so. This tutorial will have us doing just that. First off we’ll set up a test or two to help us ensure the delete function works as intended. Next up, we’ll learn a little bit about sending response codes which is helpful when dealing with scenarios where the back end is acting as an API.…

How To Create A Bootstrap Panel Layout

How To Create A Bootstrap Panel Layout

In this tutorial we’ll take just a bit of time to focus on the bootstrap panel layout of this application. Panels in bootstrap are a nice way to create space and provide a visually pleasing layout. In version 4, we would probably use Bootstrap Cards which are also a nice layout element. For now however, we’ll deal with panel design ideas including making a better bootstrap panel layout and how to center a bootstrap panel.…