User/assets tie-in

This commit is contained in:
snipe
2013-11-16 22:04:52 -05:00
parent eee22a9f2b
commit eddbb7d973
6 changed files with 460 additions and 211 deletions
+8 -1
View File
@@ -8,6 +8,7 @@ use Cartalyst\Sentry\Users\UserNotFoundException;
use Config;
use DB;
use Input;
use Asset;
use Lang;
use Redirect;
use Sentry;
@@ -49,6 +50,11 @@ class UsersController extends AdminController {
$users = $users->onlyTrashed();
}
// Get the user assets
//$assets = $users->assets();
// Paginate the users
$users = $users->paginate()
->appends(array(
@@ -56,8 +62,9 @@ class UsersController extends AdminController {
'onlyTrashed' => Input::get('onlyTrashed'),
));
// Show the page
return View::make('backend/users/index', compact('users'));
return View::make('backend/users/index', compact('users', 'assets'));
}
/**