Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OSSD
Open Sauce
Commits
5f1cf48d
Commit
5f1cf48d
authored
Oct 27, 2020
by
Muhamad Fariz Farhan
Browse files
change softdelete in destroy to forcedelete
parent
e4725a8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
admin/app/Http/Controllers/AdminerDatabaseController.php
View file @
5f1cf48d
...
...
@@ -126,7 +126,7 @@ class AdminerDatabaseController extends Controller
public
function
destroy
(
$id
)
{
$database
=
AdminerDatabase
::
find
(
$id
);
$database
->
d
elete
();
$database
->
forceD
elete
();
DB
::
statement
(
"DROP DATABASE
$database->name
;"
);
}
}
admin/app/Http/Controllers/UserController.php
View file @
5f1cf48d
...
...
@@ -109,6 +109,6 @@ class UserController extends Controller
*/
public
function
destroy
(
User
$user
)
{
$user
->
d
elete
();
$user
->
forceD
elete
();
}
}
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