Created
March 3, 2017 01:19
-
-
Save ShanakaWickramaarachchi/0a6ea3869754c3a2bee6fea01f9ebf81 to your computer and use it in GitHub Desktop.
Regulus343/ActivityLog implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
class PagesController extends Controller | |
{ | |
// | |
public function home($user,$id) | |
{ | |
Activity::log([ | |
'contentId' => $user->id, | |
'contentType' => 'User', | |
'action' => 'Create', | |
'description' => 'Created a User', | |
'details' => 'Username: '.$user->username, | |
'updated' => (bool) $id, | |
]); | |
return view('welcome'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment