Fakultas Ilmu Komputer UI

Commit 8bdf7dd4 authored by Muhammad Indra Ramadhan's avatar Muhammad Indra Ramadhan
Browse files

Merge branch 'fariz/admin' into 'master'

change softdelete in destroy to forcedelete

See merge request !6
parents e4725a8d 5f1cf48d
......@@ -126,7 +126,7 @@ class AdminerDatabaseController extends Controller
public function destroy($id)
{
$database = AdminerDatabase::find($id);
$database->delete();
$database->forceDelete();
DB::statement("DROP DATABASE $database->name;");
}
}
......@@ -109,6 +109,6 @@ class UserController extends Controller
*/
public function destroy(User $user)
{
$user->delete();
$user->forceDelete();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment