So, I am currently trying to make an activity log on every single move the user makes.
class testActivityController extends Controller
{
public function index()
{
$user = Auth::user();
Activity('test-activity-controller')->log('I am inside test Activity
Controller public function index') ->causedBy($user);
$allActivities = Activity::all();
return View('admin.UsersActivityLog'->with('allActivities'),
View::testActivityview'?????);
the testActivityView is where I will show the textbox where users will enter information. So I have to return it, right.
The second one is I have to show the log that the user went inside that page so I have to make some functions about Activities that will be shown to the main Admin page where all User Activity ($allActivities) should be posted.
How will I be able to return the testActivityView and the UserActivityLog in one function.
Thank you very much. Please forgive the stupid naming convention. It's already 12AM here.