Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
246971f0
Commit
246971f0
authored
Mar 05, 2024
by
alissonalbuquerque
Browse files
update
parent
632d1b34
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/DashboardController.php
View file @
246971f0
...
...
@@ -19,7 +19,6 @@ class DashboardController extends Controller
{
public
function
index
()
{
dd
(
'update'
);
$user
=
Auth
::
user
();
if
(
$user
->
isTypeAdmin
())
{
...
...
@@ -27,6 +26,7 @@ class DashboardController extends Controller
}
if
(
$user
->
isTypeTeacher
())
{
dd
(
'update'
);
$userPads
=
UserPad
::
whereUserId
(
$user
->
id
)
->
whereStatus
(
Status
::
ATIVO
)
->
get
();
return
view
(
'dashboard'
,
[
'userPads'
=>
$userPads
,
'menu'
=>
Menu
::
HOME
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment