source:
app/Http/Controllers/Dashboard/IndexController.php@
c6b84df
Last change on this file since c6b84df was c6b84df, checked in by , 3 years ago | |
---|---|
|
|
File size: 584 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | namespace App\Http\Controllers\Dashboard; |
4 | |
5 | use App\Helpers\Alert; |
6 | use App\Models\Department; |
7 | use App\Models\Folder; |
8 | use App\Models\File; |
9 | use App\Models\User; |
10 | use App\Http\Controllers\Controller; |
11 | |
12 | class IndexController extends Controller |
13 | { |
14 | public function index() |
15 | { |
16 | $counters = array( |
17 | "users" => User::count(), |
18 | ); |
19 | |
20 | return view("dashboard.index")->with([ |
21 | "counters" => $counters, |
22 | "departments" => Department::all(), |
23 | "folders" => Folder::all(), |
24 | "files" => File::all() |
25 | ]); |
26 | } |
27 | } |
Note:
See TracBrowser
for help on using the repository browser.